mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
Refactoring
This commit is contained in:
parent
c17252788f
commit
73b89cdfd6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user