aboutsummaryrefslogtreecommitdiffstats
path: root/qt.js
diff options
context:
space:
mode:
Diffstat (limited to 'qt.js')
-rw-r--r--qt.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt.js b/qt.js
index 1b146c30d..644c37737 100644
--- a/qt.js
+++ b/qt.js
@@ -5,13 +5,13 @@
var self = this;
navigator.qt.onmessage = function (message) {
self.handlers.forEach(function (handler) {
- handler.call(self, JSON.parse(message));
+ handler.call(self, JSON.parse(message.data));
});
}
};
QtProvider.prototype.send = function(payload) {
- navigator.qt.postData(JSON.stringify(payload));
+ navigator.qt.postMessage(JSON.stringify(payload));
};
Object.defineProperty(QtProvider.prototype, "onmessage", {