dont change state
This commit is contained in:
parent
89a010db1b
commit
3b5b90879c
|
@ -126,16 +126,6 @@ onMounted(() => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
lightbox.on('beforeOpen', () => {
|
|
||||||
history.pushState(null, '', '#pswp');
|
|
||||||
});
|
|
||||||
|
|
||||||
lightbox.on('close', () => {
|
|
||||||
if (window.location.hash === '#pswp') {
|
|
||||||
history.back();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const previewable = (file: misskey.entities.DriveFile): boolean => {
|
const previewable = (file: misskey.entities.DriveFile): boolean => {
|
||||||
|
|
Loading…
Reference in New Issue