diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2018-09-27 23:19:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-27 23:19:06 +0800 |
commit | 8c3091aa7ad31e41e8f62bd5c0b803de45816b0e (patch) | |
tree | f9686232ce512d8598a756f321f1b11b6aca86b4 /app/scripts | |
parent | cf6bead7ef1fea81f44abc26e4bf6847b9624d0d (diff) | |
parent | e19eb7bc035670d0f05e34840e6565bc1f907de3 (diff) | |
download | tangerine-wallet-browser-8c3091aa7ad31e41e8f62bd5c0b803de45816b0e.tar tangerine-wallet-browser-8c3091aa7ad31e41e8f62bd5c0b803de45816b0e.tar.gz tangerine-wallet-browser-8c3091aa7ad31e41e8f62bd5c0b803de45816b0e.tar.bz2 tangerine-wallet-browser-8c3091aa7ad31e41e8f62bd5c0b803de45816b0e.tar.lz tangerine-wallet-browser-8c3091aa7ad31e41e8f62bd5c0b803de45816b0e.tar.xz tangerine-wallet-browser-8c3091aa7ad31e41e8f62bd5c0b803de45816b0e.tar.zst tangerine-wallet-browser-8c3091aa7ad31e41e8f62bd5c0b803de45816b0e.zip |
Merge pull request #5053 from hahnmichaelf/esdb-support
Link to ESDB in local phishing.html
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/contentscript.js | 2 | ||||
-rw-r--r-- | app/scripts/phishing-detect.js | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js index 6eee1987a..2cbfb811e 100644 --- a/app/scripts/contentscript.js +++ b/app/scripts/contentscript.js @@ -199,5 +199,5 @@ function blacklistedDomainCheck () { function redirectToPhishingWarning () { console.log('MetaMask - routing to Phishing Warning component') const extensionURL = extension.runtime.getURL('phishing.html') - window.location.href = extensionURL + window.location.href = extensionURL + '#' + window.location.hostname } diff --git a/app/scripts/phishing-detect.js b/app/scripts/phishing-detect.js new file mode 100644 index 000000000..4168b6618 --- /dev/null +++ b/app/scripts/phishing-detect.js @@ -0,0 +1,5 @@ +window.onload = function() { + if (window.location.pathname === '/phishing.html') { + document.getElementById('esdbLink').innerHTML = '<b>To read more about this scam, navigate to: <a href="https://etherscamdb.info/domain/' + window.location.hash.substring(1) + '"> https://etherscamdb.info/domain/' + window.location.hash.substring(1) + '</a></b>' + } +} |