forked from MapComplete/MapComplete
Move runningFromConsole to utils
This commit is contained in:
parent
c359d43b15
commit
66018cb421
9 changed files with 73 additions and 66 deletions
|
@ -1,6 +1,6 @@
|
|||
import {UIEventSource} from "../../Logic/UIEventSource";
|
||||
import {UIElement} from "../UIElement";
|
||||
import {LocalStorageSource} from "../../Logic/Web/LocalStorageSource";
|
||||
import {Utils} from "../../Utils";
|
||||
|
||||
|
||||
export default class Locale {
|
||||
|
@ -9,7 +9,7 @@ export default class Locale {
|
|||
|
||||
private static setup() {
|
||||
const source = LocalStorageSource.Get('language', "en");
|
||||
if (!UIElement.runningFromConsole) {
|
||||
if (!Utils.runningFromConsole) {
|
||||
// @ts-ignore
|
||||
window.setLanguage = function (language: string) {
|
||||
source.setData(language)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue