This commit is contained in:
syuilo
2017-11-23 06:51:32 +09:00
parent 25981c15db
commit dd85278d54
5 changed files with 44 additions and 43 deletions

View File

@ -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');