From dd85278d54e7bef392e44ccf22cf49fe595a36d6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 23 Nov 2017 06:51:32 +0900 Subject: Fix bug --- src/web/app/init.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/web') diff --git a/src/web/app/init.ts b/src/web/app/init.ts index 76bad0ae61..79be1d3687 100644 --- a/src/web/app/init.ts +++ b/src/web/app/init.ts @@ -5,7 +5,9 @@ declare const _VERSION_: string; declare const _LANG_: string; declare const _HOST_: string; +declare const __CONSTS__: any; +import * as riot from 'riot'; import checkForUpdate from './common/scripts/check-for-update'; import mixin from './common/mixins'; import MiOS from './common/mios'; @@ -34,6 +36,9 @@ if (_HOST_ != 'localhost') { head.appendChild(meta); } +// Set global configuration +(riot as any).mixin(__CONSTS__); + // iOSでプライベートモードだとlocalStorageが使えないので既存のメソッドを上書きする try { localStorage.setItem('kyoppie', 'yuppie'); -- cgit v1.2.3-freya