Added webRequest.RequestFilter to filter main_frame .eth requests (#7419)

Added webRequest.RequestFilter to filter main_frame .eth requests
feature/default_network_editable
Eduardo Antuña Díez 5 years ago committed by Mark Stacey
parent 6e5efed7d9
commit 37b5449c13
  1. 2
      app/scripts/lib/ens-ipfs/setup.js

@ -10,7 +10,7 @@ function setupEnsIpfsResolver ({ provider }) {
// install listener // install listener
const urlPatterns = supportedTopLevelDomains.map(tld => `*://*.${tld}/*`) const urlPatterns = supportedTopLevelDomains.map(tld => `*://*.${tld}/*`)
extension.webRequest.onErrorOccurred.addListener(webRequestDidFail, { urls: urlPatterns }) extension.webRequest.onErrorOccurred.addListener(webRequestDidFail, { urls: urlPatterns, types: ['main_frame']})
// return api object // return api object
return { return {

Loading…
Cancel
Save