diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-23 06:51:32 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-23 06:51:32 +0900 |
| commit | dd85278d54e7bef392e44ccf22cf49fe595a36d6 (patch) | |
| tree | 44c6f6425605a62ac427c4ca134f984146d7e206 /src/web/app/init.ts | |
| parent | v3194 (diff) | |
| download | sharkey-dd85278d54e7bef392e44ccf22cf49fe595a36d6.tar.gz sharkey-dd85278d54e7bef392e44ccf22cf49fe595a36d6.tar.bz2 sharkey-dd85278d54e7bef392e44ccf22cf49fe595a36d6.zip | |
Fix bug
Diffstat (limited to 'src/web/app/init.ts')
| -rw-r--r-- | src/web/app/init.ts | 5 |
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'); |