bodhiproject / qrypto

Qtum light wallet and local transaction signing client
GNU General Public License v3.0
9 stars 12 forks source link

inject window.qrypto in existing tabs on extension install #164

Closed soshochang closed 6 years ago

soshochang commented 6 years ago

In this PR: -window.qrypto is only injected into pages that emit the CONNECT_QRYPTO event -if extension is uninstalled, for all tabs that have run CONNECT_QRYPTO, window.qrypto is reset to undefined and event listeners are removed, but the content script are not uninjected(it is not possible) -when extension is installed/reinstalled/or updated, all tabs that have implementing the handleQryptoInstalledOrUpdated event listener will be refreshed.