summaryrefslogtreecommitdiff
path: root/src/webchannel/qwebchannel.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/webchannel/qwebchannel.js')
-rw-r--r--src/webchannel/qwebchannel.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webchannel/qwebchannel.js b/src/webchannel/qwebchannel.js
index 2df8704..4b031c0 100644
--- a/src/webchannel/qwebchannel.js
+++ b/src/webchannel/qwebchannel.js
@@ -154,7 +154,7 @@ var QWebChannel = function(transport, initCallback)
console.warn("Unhandled property update: " + data.object + "::" + data.signal);
}
}
- setTimeout(function() { channel.exec({type: QWebChannelMessageTypes.idle}); }, 0);
+ channel.exec({type: QWebChannelMessageTypes.idle});
}
// prevent multiple initialization which might happen with multiple webchannel clients.
@@ -172,7 +172,7 @@ var QWebChannel = function(transport, initCallback)
if (initCallback) {
initCallback(channel);
}
- setTimeout(function() { channel.exec({type: QWebChannelMessageTypes.idle}); }, 0);
+ channel.exec({type: QWebChannelMessageTypes.idle});
}
this.debug = function(message)