kopia lustrzana https://github.com/cheeaun/phanpy
Try possible crash fix
rodzic
e416b853c9
commit
47125476d1
|
@ -291,10 +291,16 @@ function Media({
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
el.style.viewTransitionName = mediaVTN;
|
el.style.viewTransitionName = mediaVTN;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
document.startViewTransition(() => {
|
try {
|
||||||
|
document.startViewTransition(() => {
|
||||||
|
el.style.viewTransitionName = '';
|
||||||
|
location.hash = `#${to}`;
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
el.style.viewTransitionName = '';
|
el.style.viewTransitionName = '';
|
||||||
location.hash = `#${to}`;
|
location.hash = `#${to}`;
|
||||||
});
|
}
|
||||||
}, 1);
|
}, 1);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1357,7 +1357,7 @@ msgstr ""
|
||||||
msgid "Filtered"
|
msgid "Filtered"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/components/media.jsx:471
|
#: src/components/media.jsx:477
|
||||||
msgid "Open file"
|
msgid "Open file"
|
||||||
msgstr "Open file"
|
msgstr "Open file"
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue