A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/app/scripts/lib/is-popup-or-notification.js

8 lines
211 B

module.exports = function isPopupOrNotification () {
const url = window.location.href
if (url.match(/popup.html$/) || url.match(/home.html$/)) {
return 'popup'
} else {
return 'notification'
}
}