mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Give credit where it is due
This commit is contained in:
parent
a639543665
commit
aa282b4e3a
@ -3,7 +3,7 @@
|
||||
## Current Master
|
||||
|
||||
- Include stack traces in txMeta's to better understand the life cycle of transactions
|
||||
- Enhance blacklister functionality to include levenshtein logic.
|
||||
- Enhance blacklister functionality to include levenshtein logic. (credit to @sogoiii and @409H for their help!)
|
||||
|
||||
## 3.9.1 2017-7-19
|
||||
|
||||
|
@ -6,6 +6,9 @@ const whitelistedDomains = require('etheraddresslookup/whitelists/domains.json')
|
||||
const LEVENSHTEIN_TOLERANCE = 4
|
||||
const LEVENSHTEIN_CHECKS = ['myetherwallet', 'myetheroll', 'ledgerwallet', 'metamask']
|
||||
|
||||
|
||||
// credit to @sogoiii and @409H for their help!
|
||||
// Return a boolean on whether or not a phish is detected.
|
||||
function isPhish(hostname) {
|
||||
var strCurrentTab = hostname
|
||||
|
||||
@ -30,6 +33,7 @@ function isPhish(hostname) {
|
||||
window.addEventListener('load', function () {
|
||||
var hostnameToCheck = window.location.hostname
|
||||
if (isPhish(hostnameToCheck)) {
|
||||
// redirect to our phishing warning page.
|
||||
window.location.href = 'https://metamask.io/phishing.html'
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user