aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-03 10:26:46 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-03 10:26:46 +0800
commitdd4586ee84ea0e6a74ad4cd6b6f058169ddd9129 (patch)
treed79350e446448c09018a2ca5a9e186d9c025a096 /app
parent61b4b1f947230a8d5157fab27ee8ec82e0826e02 (diff)
downloadtangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar
tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar.gz
tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar.bz2
tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar.lz
tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar.xz
tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.tar.zst
tangerine-wallet-browser-dd4586ee84ea0e6a74ad4cd6b6f058169ddd9129.zip
Adjust sidebar transition using @cjeria\'s feedback
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/environment-type.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/scripts/lib/environment-type.js b/app/scripts/lib/environment-type.js
new file mode 100644
index 000000000..7966926eb
--- /dev/null
+++ b/app/scripts/lib/environment-type.js
@@ -0,0 +1,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'
+ }
+}