mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-25 06:41:36 -07:00
Refactoring
This commit is contained in:
parent
c17252788f
commit
73b89cdfd6
1 changed files with 7 additions and 1 deletions
|
@ -37,7 +37,13 @@ const [head] = document.getElementsByTagName('head');
|
||||||
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', '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);
|
head.appendChild(meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue