Skip to content
Snippets Groups Projects
Commit 88041dbd authored by syuilo's avatar syuilo
Browse files

Refactoring

parent 7c7e8240
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,13 @@ const [head] = document.getElementsByTagName('head');
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');
meta.setAttribute('content', [
['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