Skip to content

Commit

Permalink
Merge pull request #5010 from eduadiez/develop
Browse files Browse the repository at this point in the history
Fix ENS resolution issues
  • Loading branch information
tmashuang authored Aug 9, 2018
2 parents d4af5b7 + a2082ba commit 09b81a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/scripts/lib/ipfsContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -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)
},
}
}

0 comments on commit 09b81a2

Please sign in to comment.