summaryrefslogtreecommitdiff
path: root/src/client/init.ts
diff options
context:
space:
mode:
authorrinsuki <428rinsuki+git@gmail.com>2020-03-04 11:45:33 +0900
committerGitHub <noreply@github.com>2020-03-04 11:45:33 +0900
commitc18f6fde80c4672df2d2b98d4ecd45bb2958a97d (patch)
tree847bfbfebf117b7a6d01345307cc8dcbfcf20f32 /src/client/init.ts
parentMerge pull request #6121 from syuilo/patch/autogen/v11 (diff)
downloadsharkey-c18f6fde80c4672df2d2b98d4ecd45bb2958a97d.tar.gz
sharkey-c18f6fde80c4672df2d2b98d4ecd45bb2958a97d.tar.bz2
sharkey-c18f6fde80c4672df2d2b98d4ecd45bb2958a97d.zip
lintをGitHub Actions でするように (#6101)
* package.json の lint スクリプトを修正 * lint アクションを追加 * yarn lint --fix * 手動修正
Diffstat (limited to 'src/client/init.ts')
-rw-r--r--src/client/init.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/init.ts b/src/client/init.ts
index 2f2f9f5d59..29eabfee4e 100644
--- a/src/client/init.ts
+++ b/src/client/init.ts
@@ -81,14 +81,14 @@ if (lang == null) {
// Detect the user agent
const ua = navigator.userAgent.toLowerCase();
-let isMobile = /mobile|iphone|ipad|android/.test(ua);
+const isMobile = /mobile|iphone|ipad|android/.test(ua);
// Get the <head> element
const head = document.getElementsByTagName('head')[0];
// If mobile, insert the viewport meta tag
if (isMobile || window.innerWidth <= 1024) {
- const viewport = document.getElementsByName("viewport").item(0);
+ const viewport = document.getElementsByName('viewport').item(0);
viewport.setAttribute('content',
`${viewport.getAttribute('content')},minimum-scale=1,maximum-scale=1,user-scalable=no`);
head.appendChild(viewport);