mirror of
https://github.com/jsbin/jsbin.git
synced 2026-02-01 16:46:05 +00:00
Simplify sendReload logic.
This commit is contained in:
parent
004dd851e9
commit
37a166dc10
@ -263,9 +263,8 @@ var renderLivePreview = (function () {
|
||||
var source = getPreparedCode(),
|
||||
includeJsInRealtime = jsbin.settings.includejs;
|
||||
// Inform other pages event streaming render to reload
|
||||
if (requested && includeJsInRealtime) {
|
||||
sendReload();
|
||||
}
|
||||
if (requested) sendReload();
|
||||
|
||||
// Tell the iframe to reload
|
||||
renderer.postMessage('render', {
|
||||
source: source,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user