aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/contentscript.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-06-25 08:22:27 +0800
committerkumavis <aaron@kumavis.me>2016-06-25 08:22:27 +0800
commitd7d440b2c22eb29744dbd59d6a0d83c27e60c9bd (patch)
treeacb5391bc84adac60e3aa27e8b916808eceff469 /app/scripts/contentscript.js
parent86fdcca2ec810c7a002ec984f267920da0a85f9a (diff)
downloadtangerine-wallet-browser-d7d440b2c22eb29744dbd59d6a0d83c27e60c9bd.tar.gz
tangerine-wallet-browser-d7d440b2c22eb29744dbd59d6a0d83c27e60c9bd.tar.zst
tangerine-wallet-browser-d7d440b2c22eb29744dbd59d6a0d83c27e60c9bd.zip
svg notif now work for msg signatures
Diffstat (limited to 'app/scripts/contentscript.js')
-rw-r--r--app/scripts/contentscript.js6
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