diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-08-11 01:51:38 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-08-11 01:51:38 +0900 |
| commit | 09397f3f6593aa460724c22ff46ba255a903e032 (patch) | |
| tree | cf293ff0ee6ab33833c96a8162aa27561ffe6e8d /src | |
| parent | :v: (diff) | |
| download | sharkey-09397f3f6593aa460724c22ff46ba255a903e032.tar.gz sharkey-09397f3f6593aa460724c22ff46ba255a903e032.tar.bz2 sharkey-09397f3f6593aa460724c22ff46ba255a903e032.zip | |
Refactor
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/boot.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 9905efc940..28540e4b6e 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -45,13 +45,13 @@ 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'] - ].map(x => x.join('=')).join(',')); + 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(',')); head.appendChild(meta); } |