aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/is-popup-or-notification.js
blob: 5c38ac82332d148f9a9035ce407ec7af5a7c9cd3 (plain) (blame)
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'
  }
}