summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-23 06:51:32 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-23 06:51:32 +0900
commitdd85278d54e7bef392e44ccf22cf49fe595a36d6 (patch)
tree44c6f6425605a62ac427c4ca134f984146d7e206 /src/web
parentv3194 (diff)
downloadsharkey-dd85278d54e7bef392e44ccf22cf49fe595a36d6.tar.gz
sharkey-dd85278d54e7bef392e44ccf22cf49fe595a36d6.tar.bz2
sharkey-dd85278d54e7bef392e44ccf22cf49fe595a36d6.zip
Fix bug
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/init.ts5
1 files changed, 5 insertions, 0 deletions
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');