diff options
author | Kelvin Tan <kelvin.tyb@gmail.com> | 2018-07-25 23:37:04 +0800 |
---|---|---|
committer | Kelvin Tan <kelvin.tyb@gmail.com> | 2018-07-27 00:03:39 +0800 |
commit | 7ca402147df6064c389912ef8136235a9eb2ebc4 (patch) | |
tree | aaf0bd321f9ce82dfa3c59d194a5cff9003191f9 /app/scripts/contentscript.js | |
parent | 53b440a2878cea6b97c42e9cc7969eabd3431f27 (diff) | |
download | tangerine-wallet-browser-7ca402147df6064c389912ef8136235a9eb2ebc4.tar tangerine-wallet-browser-7ca402147df6064c389912ef8136235a9eb2ebc4.tar.gz tangerine-wallet-browser-7ca402147df6064c389912ef8136235a9eb2ebc4.tar.bz2 tangerine-wallet-browser-7ca402147df6064c389912ef8136235a9eb2ebc4.tar.lz tangerine-wallet-browser-7ca402147df6064c389912ef8136235a9eb2ebc4.tar.xz tangerine-wallet-browser-7ca402147df6064c389912ef8136235a9eb2ebc4.tar.zst tangerine-wallet-browser-7ca402147df6064c389912ef8136235a9eb2ebc4.zip |
add phishing html page, and redirect to bundled page in-window
Diffstat (limited to 'app/scripts/contentscript.js')
-rw-r--r-- | app/scripts/contentscript.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js index 7b7114c35..b7496f318 100644 --- a/app/scripts/contentscript.js +++ b/app/scripts/contentscript.js @@ -197,6 +197,7 @@ function blacklistedDomainCheck () { * Redirects the current page to a phishing information page */ function redirectToPhishingWarning () { - console.log('MetaMask - redirecting to phishing warning') - window.location.href = 'https://metamask.io/phishing.html' + console.log('MetaMask - routing to Phishing Warning component') + let extensionURL = extension.runtime.getURL('phishing.html') + window.location.href = extensionURL } |