diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2018-08-10 00:47:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-10 00:47:25 +0800 |
commit | 09b81a2d22679a51b2e804fdb5f5d85bdf78a66b (patch) | |
tree | 1595cc56a26d04b6b4b9ba8345b22091ac3e0f92 /app | |
parent | d4af5b7bec19e034563f6b4b6e61cc1764bf6aaf (diff) | |
parent | a2082bae5c535f6f92d7b4124785e562815d840f (diff) | |
download | tangerine-wallet-browser-09b81a2d22679a51b2e804fdb5f5d85bdf78a66b.tar tangerine-wallet-browser-09b81a2d22679a51b2e804fdb5f5d85bdf78a66b.tar.gz tangerine-wallet-browser-09b81a2d22679a51b2e804fdb5f5d85bdf78a66b.tar.bz2 tangerine-wallet-browser-09b81a2d22679a51b2e804fdb5f5d85bdf78a66b.tar.lz tangerine-wallet-browser-09b81a2d22679a51b2e804fdb5f5d85bdf78a66b.tar.xz tangerine-wallet-browser-09b81a2d22679a51b2e804fdb5f5d85bdf78a66b.tar.zst tangerine-wallet-browser-09b81a2d22679a51b2e804fdb5f5d85bdf78a66b.zip |
Merge pull request #5010 from eduadiez/develop
Fix ENS resolution issues
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/ipfsContent.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/lib/ipfsContent.js b/app/scripts/lib/ipfsContent.js index 5222151ea..5db63f47d 100644 --- a/app/scripts/lib/ipfsContent.js +++ b/app/scripts/lib/ipfsContent.js @@ -5,7 +5,7 @@ module.exports = function (provider) { function ipfsContent (details) { const name = details.url.substring(7, details.url.length - 1) let clearTime = null - extension.tabs.getSelected(null, tab => { + extension.tabs.query({active: true}, tab => { extension.tabs.update(tab.id, { url: 'loading.html' }) clearTime = setTimeout(() => { @@ -34,11 +34,11 @@ module.exports = function (provider) { return { cancel: true } } - extension.webRequest.onBeforeRequest.addListener(ipfsContent, {urls: ['*://*.eth/', '*://*.test/']}) + extension.webRequest.onErrorOccurred.addListener(ipfsContent, {urls: ['*://*.eth/', '*://*.test/']}) return { remove () { - extension.webRequest.onBeforeRequest.removeListener(ipfsContent) + extension.webRequest.onErrorOccurred.removeListener(ipfsContent) }, } } |