This commit is contained in:
syuilo 2017-08-11 02:00:51 +09:00
parent 09397f3f65
commit 04bc84358d

View File

@ -45,13 +45,12 @@
if (isMobile) { if (isMobile) {
const meta = document.createElement('meta'); const meta = document.createElement('meta');
meta.setAttribute('name', 'viewport'); meta.setAttribute('name', 'viewport');
meta.setAttribute('content', Object.entries({ meta.setAttribute('content',
'width': 'device-width', 'width=device-width,' +
'initial-scale': '1', 'initial-scale=1,' +
'minimum-scale': '1', 'minimum-scale=1,' +
'maximum-scale': '1', 'maximum-scale=1,' +
'user-scalable': 'no' 'user-scalable=no');
}).map(x => x.join('=')).join(','));
head.appendChild(meta); head.appendChild(meta);
} }