1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-04 17:58:43 +09:00
This commit is contained in:
syuilo 2017-08-11 01:51:38 +09:00
parent 7b5a57c74e
commit 09397f3f65

View File

@ -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);
}