aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-03 03:14:05 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-03 03:14:05 +0800
commit451c05bcbb2a9612cf242caa52c034c0056807c8 (patch)
treedf96d4efef45bbf125e02b3923e09c93865ad5a9
parent66b3b72c9813f3fc251f106c0b7c43e0b64e6e01 (diff)
downloadtangerine-wallet-browser-451c05bcbb2a9612cf242caa52c034c0056807c8.tar
tangerine-wallet-browser-451c05bcbb2a9612cf242caa52c034c0056807c8.tar.gz
tangerine-wallet-browser-451c05bcbb2a9612cf242caa52c034c0056807c8.tar.bz2
tangerine-wallet-browser-451c05bcbb2a9612cf242caa52c034c0056807c8.tar.lz
tangerine-wallet-browser-451c05bcbb2a9612cf242caa52c034c0056807c8.tar.xz
tangerine-wallet-browser-451c05bcbb2a9612cf242caa52c034c0056807c8.tar.zst
tangerine-wallet-browser-451c05bcbb2a9612cf242caa52c034c0056807c8.zip
fix environment detection regex
-rw-r--r--app/scripts/lib/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/util.js b/app/scripts/lib/util.js
index 431d1e59c..51e9036cc 100644
--- a/app/scripts/lib/util.js
+++ b/app/scripts/lib/util.js
@@ -28,7 +28,7 @@ function getStack () {
*
*/
const getEnvironmentType = (url = window.location.href) => {
- if (url.match(/popup.html(?:\?.+)*$/)) {
+ if (url.match(/popup.html(?:#.*)*$/)) {
return ENVIRONMENT_TYPE_POPUP
} else if (url.match(/home.html(?:\?.+)*$/) || url.match(/home.html(?:#.*)*$/)) {
return ENVIRONMENT_TYPE_FULLSCREEN