aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/contentscript.js
diff options
context:
space:
mode:
authorMark Stacey <markjstacey@gmail.com>2019-07-24 00:54:49 +0800
committerGitHub <noreply@github.com>2019-07-24 00:54:49 +0800
commit437132bf25525dd786bb5da1d1d934a6ef050949 (patch)
treeb399de30b370148385ab4c4b9c675c2807b46587 /app/scripts/contentscript.js
parentaea54d1b86e8b3d23afe145428335bffdbfe906c (diff)
downloadtangerine-wallet-browser-437132bf25525dd786bb5da1d1d934a6ef050949.tar.gz
tangerine-wallet-browser-437132bf25525dd786bb5da1d1d934a6ef050949.tar.zst
tangerine-wallet-browser-437132bf25525dd786bb5da1d1d934a6ef050949.zip
Replace deprecated Chrome API (#6895)
The function `chrome.extension.getURL` has been deprecated since Chrome 58 [1]. It is completely equivalent to `chrome.runtime.getURL`, which has been around since Chrome 31. [1]: https://developer.chrome.com/extensions/extension#method-getURL
Diffstat (limited to 'app/scripts/contentscript.js')
-rw-r--r--app/scripts/contentscript.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js
index 0c55ae39f..db4d5fd63 100644
--- a/app/scripts/contentscript.js
+++ b/app/scripts/contentscript.js
@@ -10,7 +10,7 @@ const extension = require('extensionizer')
const PortStream = require('extension-port-stream')
const inpageContent = fs.readFileSync(path.join(__dirname, '..', '..', 'dist', 'chrome', 'inpage.js')).toString()
-const inpageSuffix = '//# sourceURL=' + extension.extension.getURL('inpage.js') + '\n'
+const inpageSuffix = '//# sourceURL=' + extension.runtime.getURL('inpage.js') + '\n'
const inpageBundle = inpageContent + inpageSuffix
// Eventually this streaming injection could be replaced with: