aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorhahnmichaelf <hahn.michael.f@gmail.com>2018-08-13 06:57:58 +0800
committerhahnmichaelf <hahn.michael.f@gmail.com>2018-08-13 06:57:58 +0800
commit9666eaba668f7b288c42366ba04add951e6aa3b5 (patch)
treea3c1258968a7e9d83b76324679bbad947c63ffda /app/scripts
parente2be22a4b722df608cb764042cc8ade6664414d8 (diff)
downloadtangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar
tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar.gz
tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar.bz2
tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar.lz
tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar.xz
tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.tar.zst
tangerine-wallet-browser-9666eaba668f7b288c42366ba04add951e6aa3b5.zip
base - working. fixes #4774
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/contentscript.js2
-rw-r--r--app/scripts/esdb-replace.js5
2 files changed, 6 insertions, 1 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js
index e0a2b0061..60ef97e5e 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/esdb-replace.js b/app/scripts/esdb-replace.js
new file mode 100644
index 000000000..ae5991586
--- /dev/null
+++ b/app/scripts/esdb-replace.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>"
+ }
+}