diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-03 03:14:05 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-03 03:14:05 +0800 |
commit | 451c05bcbb2a9612cf242caa52c034c0056807c8 (patch) | |
tree | df96d4efef45bbf125e02b3923e09c93865ad5a9 /app/scripts/lib/util.js | |
parent | 66b3b72c9813f3fc251f106c0b7c43e0b64e6e01 (diff) | |
download | tangerine-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
Diffstat (limited to 'app/scripts/lib/util.js')
-rw-r--r-- | app/scripts/lib/util.js | 2 |
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 |