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