aboutsummaryrefslogtreecommitdiffstats
path: root/qt.js
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-21 06:37:58 +0800
committerobscuren <geffobscura@gmail.com>2014-10-21 06:37:58 +0800
commit8a7d1a69b34c231626b709d8e79910bba9ef702c (patch)
tree127c7bb8352530d25b32eba4367a10b4afed6c6b /qt.js
parent76b20be2ea0b95bf700b36df39a5678f8ba7fcc1 (diff)
downloadgo-tangerine-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar
go-tangerine-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar.gz
go-tangerine-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar.bz2
go-tangerine-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar.lz
go-tangerine-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar.xz
go-tangerine-8a7d1a69b34c231626b709d8e79910bba9ef702c.tar.zst
go-tangerine-8a7d1a69b34c231626b709d8e79910bba9ef702c.zip
Fixed setting providers to the right object
Diffstat (limited to 'qt.js')
-rw-r--r--qt.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt.js b/qt.js
index 214a0ee23..39c0a89a9 100644
--- a/qt.js
+++ b/qt.js
@@ -3,6 +3,7 @@
QtProvider.prototype.send = function(payload) {
navigator.qt.postData(JSON.stringify(payload));
};
+
Object.defineProperty(QtProvider.prototype, "onmessage", {
set: function(handler) {
navigator.qt.onmessage = handler;
@@ -10,6 +11,7 @@
});
if(typeof(web3) !== "undefined" && web3.providers !== undefined) {
- web3.QtProvider = QtProvider;
+ web3.providers.QtProvider = QtProvider;
}
})();
+