aboutsummaryrefslogtreecommitdiffstats
path: root/mist/assets/ext/qt_messaging_adapter.js
diff options
context:
space:
mode:
Diffstat (limited to 'mist/assets/ext/qt_messaging_adapter.js')
-rw-r--r--mist/assets/ext/qt_messaging_adapter.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/mist/assets/ext/qt_messaging_adapter.js b/mist/assets/ext/qt_messaging_adapter.js
deleted file mode 100644
index ff6976177..000000000
--- a/mist/assets/ext/qt_messaging_adapter.js
+++ /dev/null
@@ -1,21 +0,0 @@
-window._messagingAdapter = function(data) {
- navigator.qt.postMessage(data);
-};
-
-navigator.qt.onmessage = function(ev) {
- var data = JSON.parse(ev.data)
-
- if(data._event !== undefined) {
- eth.trigger(data._event, data.data);
- } else {
- if(data._seed) {
- var cb = eth._callbacks[data._seed];
- if(cb) {
- cb.call(this, data.data)
-
- // Remove the "trigger" callback
- delete eth._callbacks[ev._seed];
- }
- }
- }
-}