From 04bc84358d235c2a18bbbd6d89279e3bd89a9b5b 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 28540e4b6e..ac6c18d649 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); }