1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 21:15:45 +02:00

enhance(frontend): viewportの属性を起動後に変化させないことにより処理を簡略化+安定性向上

This commit is contained in:
syuilo
2025-11-26 19:12:03 +09:00
parent 71808d3cc0
commit 236c235115
2 changed files with 1 additions and 8 deletions

View File

@@ -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);