kopia lustrzana https://github.com/cheeaun/phanpy
Try possible crash fix
rodzic
e416b853c9
commit
47125476d1
|
@ -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 {
|
||||
|
|
|
@ -1357,7 +1357,7 @@ msgstr ""
|
|||
msgid "Filtered"
|
||||
msgstr ""
|
||||
|
||||
#: src/components/media.jsx:471
|
||||
#: src/components/media.jsx:477
|
||||
msgid "Open file"
|
||||
msgstr "Open file"
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue