diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-02-04 05:24:17 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-02-04 05:24:17 +0800 |
commit | 45134de7401b58f0118deb16bf0644495715fbdb (patch) | |
tree | ebe0ba3fe2de88ae74ca3fa009b3b4a0d7c64623 /lib/qtsync.js | |
parent | f3ce1f07c42924a116e9c215ea95fb0a2b0217f0 (diff) | |
download | dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar.gz dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar.bz2 dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar.lz dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar.xz dexon-45134de7401b58f0118deb16bf0644495715fbdb.tar.zst dexon-45134de7401b58f0118deb16bf0644495715fbdb.zip |
jsonrpc.js file && batch polling
Diffstat (limited to 'lib/qtsync.js')
-rw-r--r-- | lib/qtsync.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/qtsync.js b/lib/qtsync.js index a287a7172..75dcb43ab 100644 --- a/lib/qtsync.js +++ b/lib/qtsync.js @@ -25,7 +25,8 @@ var QtSyncProvider = function () { }; QtSyncProvider.prototype.send = function (payload) { - return navigator.qt.callMethod(JSON.stringify(payload)); + var result = navigator.qt.callMethod(JSON.stringify(payload)); + return JSON.parse(result); }; module.exports = QtSyncProvider; |