1 2 3 4 5 6 7 8
module.exports = function isPopupOrNotification() { const url = window.location.href if (url.match(/popup.html$/)) { return 'popup' } else { return 'notification' } }