mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 17:03:09 +02:00
Refactor
This commit is contained in:
parent
7b5a57c74e
commit
09397f3f65
1 changed files with 7 additions and 7 deletions
|
@ -45,13 +45,13 @@
|
||||||
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', [
|
meta.setAttribute('content', Object.entries({
|
||||||
['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(','));
|
}).map(x => x.join('=')).join(','));
|
||||||
head.appendChild(meta);
|
head.appendChild(meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue