diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-06-25 09:02:28 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-06-25 09:02:28 +0800 |
commit | ab55fefa1a4ebeaa9a42756a72d49b63f036b946 (patch) | |
tree | f30f51dd7dbe413b8944b230d14660a4c1a2fd61 /app/scripts/contentscript.js | |
parent | ef743499cb93dc8360be20db03c4ab0676aa57bb (diff) | |
parent | 36a183db94e66999421980f50c2ab2e8d1ce2c3b (diff) | |
download | tangerine-wallet-browser-ab55fefa1a4ebeaa9a42756a72d49b63f036b946.tar tangerine-wallet-browser-ab55fefa1a4ebeaa9a42756a72d49b63f036b946.tar.gz tangerine-wallet-browser-ab55fefa1a4ebeaa9a42756a72d49b63f036b946.tar.bz2 tangerine-wallet-browser-ab55fefa1a4ebeaa9a42756a72d49b63f036b946.tar.lz tangerine-wallet-browser-ab55fefa1a4ebeaa9a42756a72d49b63f036b946.tar.xz tangerine-wallet-browser-ab55fefa1a4ebeaa9a42756a72d49b63f036b946.tar.zst tangerine-wallet-browser-ab55fefa1a4ebeaa9a42756a72d49b63f036b946.zip |
Merge branch 'master' into uiFixes
Diffstat (limited to 'app/scripts/contentscript.js')
-rw-r--r-- | app/scripts/contentscript.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js index 5d31e3c38..f4f064163 100644 --- a/app/scripts/contentscript.js +++ b/app/scripts/contentscript.js @@ -1,7 +1,7 @@ const LocalMessageDuplexStream = require('./lib/local-message-stream.js') const PortStream = require('./lib/port-stream.js') const ObjectMultiplex = require('./lib/obj-multiplex') -const urlUtil = require('url') +// const urlUtil = require('url') if (shouldInjectWeb3()) { setupInjection() @@ -45,8 +45,6 @@ function setupInjection(){ } function shouldInjectWeb3(){ - var urlData = urlUtil.parse(window.location.href) - var extension = urlData.pathname.split('.').slice(-1)[0] - var shouldInject = (extension !== 'pdf') + var shouldInject = (window.location.href.indexOf('.pdf') === -1) return shouldInject }
\ No newline at end of file |