diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-08-23 01:39:43 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-08-23 01:39:43 +0800 |
commit | fdff7685492bb40c8b6721b2290d9d5a8cc7ceb2 (patch) | |
tree | 7e09be73c2e30903d8618e2fd71d6d67832e9d84 /app/vendor | |
parent | 055e0f8dacc8cf3f45d31755c36270403b9130f3 (diff) | |
download | tangerine-wallet-browser-fdff7685492bb40c8b6721b2290d9d5a8cc7ceb2.tar tangerine-wallet-browser-fdff7685492bb40c8b6721b2290d9d5a8cc7ceb2.tar.gz tangerine-wallet-browser-fdff7685492bb40c8b6721b2290d9d5a8cc7ceb2.tar.bz2 tangerine-wallet-browser-fdff7685492bb40c8b6721b2290d9d5a8cc7ceb2.tar.lz tangerine-wallet-browser-fdff7685492bb40c8b6721b2290d9d5a8cc7ceb2.tar.xz tangerine-wallet-browser-fdff7685492bb40c8b6721b2290d9d5a8cc7ceb2.tar.zst tangerine-wallet-browser-fdff7685492bb40c8b6721b2290d9d5a8cc7ceb2.zip |
handle onDisconnect
Diffstat (limited to 'app/vendor')
-rw-r--r-- | app/vendor/trezor/content-script.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/vendor/trezor/content-script.js b/app/vendor/trezor/content-script.js index c8888c1b6..a21332f46 100644 --- a/app/vendor/trezor/content-script.js +++ b/app/vendor/trezor/content-script.js @@ -6,6 +6,10 @@ let port = chrome.runtime.connect({ name: 'trezor-connect' }); port.onMessage.addListener(message => { window.postMessage(message, window.location.origin); }); +port.onDisconnect.addListener(d => { + port = null; +}); + /* Passing messages from popup to background script */ |