aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-10-13 02:16:40 +0800
committerDan Finlay <dan@danfinlay.com>2017-10-13 02:16:40 +0800
commitc9a984a237ccacf8994e6c4c2f49b7a17da92d6b (patch)
tree14a9590cad1287600fcd2b334fcd3b17e6fb7091 /app/scripts
parentd71f14cb678b48b8666e6835c025ff14193acbb3 (diff)
downloadtangerine-wallet-browser-c9a984a237ccacf8994e6c4c2f49b7a17da92d6b.tar
tangerine-wallet-browser-c9a984a237ccacf8994e6c4c2f49b7a17da92d6b.tar.gz
tangerine-wallet-browser-c9a984a237ccacf8994e6c4c2f49b7a17da92d6b.tar.bz2
tangerine-wallet-browser-c9a984a237ccacf8994e6c4c2f49b7a17da92d6b.tar.lz
tangerine-wallet-browser-c9a984a237ccacf8994e6c4c2f49b7a17da92d6b.tar.xz
tangerine-wallet-browser-c9a984a237ccacf8994e6c4c2f49b7a17da92d6b.tar.zst
tangerine-wallet-browser-c9a984a237ccacf8994e6c4c2f49b7a17da92d6b.zip
Break up inpage file read into multiple lines
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/contentscript.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js
index 59e7f08ce..445608214 100644
--- a/app/scripts/contentscript.js
+++ b/app/scripts/contentscript.js
@@ -7,7 +7,9 @@ const ObjectMultiplex = require('obj-multiplex')
const extension = require('extensionizer')
const PortStream = require('./lib/port-stream.js')
-const inpageText = fs.readFileSync(path.join(__dirname, '..', '..', 'dist', 'chrome', 'scripts', 'inpage.js')).toString() + '//# sourceURL=' + extension.extension.getURL('scripts/inpage.js') + '\n'
+const inpagePath = path.join(__dirname, '..', '..', 'dist', 'chrome', 'scripts', 'inpage.js')
+const inpageString = fs.readFileSync(inpagePath).toString()
+const inpageText = inpageString + '//# sourceURL=' + extension.extension.getURL('scripts/inpage.js') + '\n'
// Eventually this streaming injection could be replaced with:
// https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components.utils.exportFunction