forked from MapComplete/MapComplete
Add robustness when run via console, formatting
This commit is contained in:
parent
83af5adaea
commit
89d4a6bcce
11 changed files with 118 additions and 67 deletions
|
@ -5,6 +5,7 @@ import LayoutConfig from "../../Models/ThemeConfig/LayoutConfig";
|
|||
import {UIEventSource} from "../UIEventSource";
|
||||
import {QueryParameters} from "../Web/QueryParameters";
|
||||
import Constants from "../../Models/Constants";
|
||||
import {Utils} from "../../Utils";
|
||||
|
||||
export default class FeatureSwitchState {
|
||||
|
||||
|
@ -137,7 +138,7 @@ export default class FeatureSwitchState {
|
|||
|
||||
|
||||
let testingDefaultValue = false;
|
||||
if (this.featureSwitchApiURL.data !== "osm-test" &&
|
||||
if (this.featureSwitchApiURL.data !== "osm-test" && !Utils.runningFromConsole &&
|
||||
(location.hostname === "localhost" || location.hostname === "127.0.0.1")) {
|
||||
testingDefaultValue = true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue