aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/is-popup-or-notification.js
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-08-26 07:06:54 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-08-26 07:06:54 +0800
commit547894ed391f2d258c46ff382d4b211d18d81a7b (patch)
tree9425bee50dae3f6d254462363b5f60b837cb2e27 /app/scripts/lib/is-popup-or-notification.js
parent250cf8cc23305e33f4fc26a1711996ebc54fd9ad (diff)
parent78f73038e789f4483f728a7cc9ea1c68b0b3d7fa (diff)
downloadtangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar
tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.gz
tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.bz2
tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.lz
tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.xz
tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.zst
tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.zip
Merge branch 'master' into i#563forgotPassword
Diffstat (limited to 'app/scripts/lib/is-popup-or-notification.js')
-rw-r--r--app/scripts/lib/is-popup-or-notification.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/scripts/lib/is-popup-or-notification.js b/app/scripts/lib/is-popup-or-notification.js
new file mode 100644
index 000000000..5c38ac823
--- /dev/null
+++ b/app/scripts/lib/is-popup-or-notification.js
@@ -0,0 +1,8 @@
+module.exports = function isPopupOrNotification() {
+ const url = window.location.href
+ if (url.match(/popup.html$/)) {
+ return 'popup'
+ } else {
+ return 'notification'
+ }
+}