Skip to content
Snippets Groups Projects
Commit 09397f3f authored by syuilo's avatar syuilo
Browse files

Refactor

parent 7b5a57c7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment