Try possible crash fix

pull/1214/head
Lim Chee Aun 2025-07-13 18:02:12 +08:00
rodzic e416b853c9
commit 47125476d1
2 zmienionych plików z 9 dodań i 3 usunięć

Wyświetl plik

@ -291,10 +291,16 @@ function Media({
e.preventDefault();
el.style.viewTransitionName = mediaVTN;
setTimeout(() => {
document.startViewTransition(() => {
try {
document.startViewTransition(() => {
el.style.viewTransitionName = '';
location.hash = `#${to}`;
});
} catch (e) {
console.error(e);
el.style.viewTransitionName = '';
location.hash = `#${to}`;
});
}
}, 1);
}
} else {

2
src/locales/en.po wygenerowano
Wyświetl plik

@ -1357,7 +1357,7 @@ msgstr ""
msgid "Filtered"
msgstr ""
#: src/components/media.jsx:471
#: src/components/media.jsx:477
msgid "Open file"
msgstr "Open file"