From 3b5b90879cd32cbe558e376adbff3a751247d99f Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 4 Apr 2023 21:53:17 -0700 Subject: [PATCH] dont change state --- packages/client/src/components/MkMediaList.vue | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/client/src/components/MkMediaList.vue b/packages/client/src/components/MkMediaList.vue index 9a1d1f1704..6dd0dea274 100644 --- a/packages/client/src/components/MkMediaList.vue +++ b/packages/client/src/components/MkMediaList.vue @@ -126,16 +126,6 @@ onMounted(() => { 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 => {