fix environment detection regex

This commit is contained in:
brunobar79 2018-07-02 15:14:05 -04:00
parent 66b3b72c98
commit 451c05bcbb
1 changed files with 1 additions and 1 deletions

View File

@ -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