From 88041dbd94d60034991714b57b98859587cdb5a4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 18 May 2017 14:34:13 +0900 Subject: [PATCH] Refactoring --- src/web/app/boot.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 396935aa19..59af08f8a2 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -37,7 +37,13 @@ const [head] = document.getElementsByTagName('head'); if (isMobile) { const meta = document.createElement('meta'); meta.setAttribute('name', 'viewport'); - meta.setAttribute('content', 'width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no'); + meta.setAttribute('content', [ + ['width', 'device-width'], + ['initial-scale', '1'], + ['minimum-scale', '1'], + ['maximum-scale', '1'], + ['user-scalable', 'no'] + ].map(x => x.join('=')).join(',')); head.appendChild(meta); }