mirror of
https://github.com/paricafe/misskey.git
synced 2025-04-01 09:09:29 -05:00
fix lint
This commit is contained in:
parent
71188b3463
commit
0007723405
1 changed files with 2 additions and 2 deletions
|
@ -183,14 +183,14 @@ onMounted(() => {
|
|||
lightbox?.pswp?.element?.focus({
|
||||
preventScroll: true,
|
||||
});
|
||||
history.pushState(null, '', '#pswp');
|
||||
window.history.pushState(null, '', '#pswp');
|
||||
});
|
||||
|
||||
lightbox.on('destroy', () => {
|
||||
focusParent(activeEl, true, false);
|
||||
activeEl = null;
|
||||
if (window.location.hash === '#pswp') {
|
||||
history.back();
|
||||
window.history.back();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue