Skip to content

Commit

Permalink
fix: should not open external link twice
Browse files Browse the repository at this point in the history
fix #104
  • Loading branch information
pengx17 committed Jun 29, 2022
1 parent c0f7d79 commit afd20d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/macro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const registerMacro = () => {
// FIXME: seems not working because Logseq will capture mousedown events on blocks
logseq.provideModel({
openExternalLink(e: any) {
e.stopPropagation();
const { url } = e.dataset;
logseq.App.openExternalLink(url);
},
Expand Down

0 comments on commit afd20d0

Please sign in to comment.