aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/contentscript.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-29 12:29:57 +0800
committerkumavis <aaron@kumavis.me>2018-03-29 12:29:57 +0800
commit253abd60fca5a6efb1a2e0ecbe305989a852ec32 (patch)
tree179773e462f77175a85d647e595f3f0f20e86abc /app/scripts/contentscript.js
parentb88119c23851144448771e8a6de97e48fb96b2b0 (diff)
downloadtangerine-wallet-browser-253abd60fca5a6efb1a2e0ecbe305989a852ec32.tar
tangerine-wallet-browser-253abd60fca5a6efb1a2e0ecbe305989a852ec32.tar.gz
tangerine-wallet-browser-253abd60fca5a6efb1a2e0ecbe305989a852ec32.tar.bz2
tangerine-wallet-browser-253abd60fca5a6efb1a2e0ecbe305989a852ec32.tar.lz
tangerine-wallet-browser-253abd60fca5a6efb1a2e0ecbe305989a852ec32.tar.xz
tangerine-wallet-browser-253abd60fca5a6efb1a2e0ecbe305989a852ec32.tar.zst
tangerine-wallet-browser-253abd60fca5a6efb1a2e0ecbe305989a852ec32.zip
build - extension - move js files to toplevel
Diffstat (limited to 'app/scripts/contentscript.js')
-rw-r--r--app/scripts/contentscript.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js
index 7abbc60e7..2098fae27 100644
--- a/app/scripts/contentscript.js
+++ b/app/scripts/contentscript.js
@@ -7,8 +7,8 @@ const ObjectMultiplex = require('obj-multiplex')
const extension = require('extensionizer')
const PortStream = require('./lib/port-stream.js')
-const inpageContent = fs.readFileSync(path.join(__dirname, '..', '..', 'dist', 'chrome', 'scripts', 'inpage.js')).toString()
-const inpageSuffix = '//# sourceURL=' + extension.extension.getURL('scripts/inpage.js') + '\n'
+const inpageContent = fs.readFileSync(path.join(__dirname, '..', '..', 'dist', 'chrome', 'inpage.js')).toString()
+const inpageSuffix = '//# sourceURL=' + extension.extension.getURL('inpage.js') + '\n'
const inpageBundle = inpageContent + inpageSuffix
// Eventually this streaming injection could be replaced with:
@@ -96,7 +96,7 @@ function logStreamDisconnectWarning (remoteLabel, err) {
}
function shouldInjectWeb3 () {
- return doctypeCheck() && suffixCheck()
+ return doctypeCheck() && suffixCheck()
&& documentElementCheck() && !blacklistedDomainCheck()
}