diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-21 06:37:58 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-21 06:37:58 +0800 |
commit | 8a7d1a69b34c231626b709d8e79910bba9ef702c (patch) | |
tree | 127c7bb8352530d25b32eba4367a10b4afed6c6b /qt.js | |
parent | 76b20be2ea0b95bf700b36df39a5678f8ba7fcc1 (diff) | |
download | go-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.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } })(); + |