commit
1375807499
@ -0,0 +1,13 @@ |
|||||||
|
const blacklistedDomains = require('etheraddresslookup/blacklists/domains.json') |
||||||
|
|
||||||
|
function detectBlacklistedDomain() { |
||||||
|
var strCurrentTab = window.location.hostname |
||||||
|
if (blacklistedDomains && blacklistedDomains.includes(strCurrentTab)) { |
||||||
|
window.location.href = 'https://metamask.io/phishing.html' |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
window.addEventListener('load', function() { |
||||||
|
detectBlacklistedDomain() |
||||||
|
}) |
||||||
|
|
Loading…
Reference in new issue