From 6ff84a10617e43ab483de6438a07bcf06ae834a0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 12 Jul 2020 18:19:02 +0900 Subject: [PATCH] refactor --- src/client/init.ts | 3 --- src/server/web/views/base.pug | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/client/init.ts b/src/client/init.ts index 7a0339d377..4d71ea819a 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -98,9 +98,6 @@ const html = document.documentElement; html.setAttribute('lang', lang); //#endregion -// http://qiita.com/junya/items/3ff380878f26ca447f85 -document.body.setAttribute('ontouchstart', ''); - // アプリ基底要素マウント document.body.innerHTML = '
'; diff --git a/src/server/web/views/base.pug b/src/server/web/views/base.pug index 76114e6f5a..3a81df78bb 100644 --- a/src/server/web/views/base.pug +++ b/src/server/web/views/base.pug @@ -61,7 +61,8 @@ html document.documentElement.style.backgroundImage = `url(${wallpaper})`; } - body + //- https://qiita.com/junya/items/3ff380878f26ca447f85 + body(ontouchstart='') noscript: p | JavaScriptを有効にしてください br