mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Refactor
This commit is contained in:
parent
23e059abe1
commit
367499454a
@ -45,13 +45,12 @@
|
||||
if (isMobile) {
|
||||
const meta = document.createElement('meta');
|
||||
meta.setAttribute('name', 'viewport');
|
||||
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(','));
|
||||
meta.setAttribute('content',
|
||||
'width=device-width,' +
|
||||
'initial-scale=1,' +
|
||||
'minimum-scale=1,' +
|
||||
'maximum-scale=1,' +
|
||||
'user-scalable=no');
|
||||
head.appendChild(meta);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user