mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-04 18:55:56 +02:00
enhance(frontend): viewportの属性を起動後に変化させないことにより処理を簡略化+安定性向上
This commit is contained in:
@@ -109,13 +109,6 @@ export async function common(createVue: () => Promise<App<Element>>) {
|
||||
else window.location.reload();
|
||||
});
|
||||
|
||||
// If mobile, insert the viewport meta tag
|
||||
if (['smartphone', 'tablet'].includes(deviceKind)) {
|
||||
const viewport = window.document.getElementsByName('viewport').item(0);
|
||||
viewport.setAttribute('content',
|
||||
`${viewport.getAttribute('content')}, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover`);
|
||||
}
|
||||
|
||||
//#region Set lang attr
|
||||
const html = window.document.documentElement;
|
||||
html.setAttribute('lang', lang);
|
||||
|
||||
Reference in New Issue
Block a user