fix environment detection regex

feature/default_network_editable
brunobar79 6 years ago
parent 66b3b72c98
commit 451c05bcbb
  1. 2
      app/scripts/lib/util.js

@ -28,7 +28,7 @@ function getStack () {
* *
*/ */
const getEnvironmentType = (url = window.location.href) => { const getEnvironmentType = (url = window.location.href) => {
if (url.match(/popup.html(?:\?.+)*$/)) { if (url.match(/popup.html(?:#.*)*$/)) {
return ENVIRONMENT_TYPE_POPUP return ENVIRONMENT_TYPE_POPUP
} else if (url.match(/home.html(?:\?.+)*$/) || url.match(/home.html(?:#.*)*$/)) { } else if (url.match(/home.html(?:\?.+)*$/) || url.match(/home.html(?:#.*)*$/)) {
return ENVIRONMENT_TYPE_FULLSCREEN return ENVIRONMENT_TYPE_FULLSCREEN

Loading…
Cancel
Save