Skip to content

Commit f463f18

Browse files
KuronekoKuroneko
authored andcommitted
修复switch618开启弹窗模式后仍然打开新窗口
1 parent 1642c32 commit f463f18

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • projects/switch520-auto-secret/Components/OpenInModal

projects/switch520-auto-secret/Components/OpenInModal/reaxel.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export const reaxel_OpenInModal = reaxel(() => {
7070
if(!await GM.getValue('options::modal-mode' , true)){
7171
return;
7272
}
73+
e.preventDefault();
74+
e.stopPropagation();
7375
const cardEl = e.composedPath().find(( p: HTMLElement ) => !!( p ).dataset?.id && p.className === 'post grid') as HTMLElement;
7476
if( cardEl ) {
7577
const id = cardEl.dataset.id;

0 commit comments

Comments
 (0)