aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/is-popup-or-notification.js
blob: 693fa87519ac31d10672a263b6e9510bd7d654bf (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'
  }
}