This commit is contained in:
syuilo
2020-07-04 20:38:39 +09:00
parent 83e1068da3
commit 9e4456ac1b
4 changed files with 8 additions and 23 deletions

View File

@ -102,13 +102,6 @@ const html = document.documentElement;
html.setAttribute('lang', lang);
//#endregion
// iOSでプライベートモードだとlocalStorageが使えないので既存のメソッドを上書きする
try {
localStorage.setItem('foo', 'bar');
} catch (e) {
Storage.prototype.setItem = () => { }; // noop
}
// http://qiita.com/junya/items/3ff380878f26ca447f85
document.body.setAttribute('ontouchstart', '');