From 367499454a7a3b3315d06de0f24353a6f492fb81 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 11 Aug 2017 02:00:51 +0900 Subject: [PATCH] Refactor --- src/web/app/boot.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 28540e4b6..ac6c18d64 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -45,13 +45,12 @@ if (isMobile) { const meta = document.createElement('meta'); meta.setAttribute('name', 'viewport'); - meta.setAttribute('content', Object.entries({ - 'width': 'device-width', - 'initial-scale': '1', - 'minimum-scale': '1', - 'maximum-scale': '1', - 'user-scalable': 'no' - }).map(x => x.join('=')).join(',')); + meta.setAttribute('content', + 'width=device-width,' + + 'initial-scale=1,' + + 'minimum-scale=1,' + + 'maximum-scale=1,' + + 'user-scalable=no'); head.appendChild(meta); }