We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67ecbfd commit c366216Copy full SHA for c366216
assets/lib/tools.js
@@ -60,7 +60,10 @@ export async function open_outside(link) {
60
} else if(link.prop !== undefined) { // jQuery object, expecting a link
61
console.log("From jquery prop")
62
await shell.openExternal(link.prop("href"))
63
- } else if(link.target !== undefined) { // onClick event with a target
+ } else if(link.currentTarget && link.currentTarget.href) { // onClick event with a target
64
+ console.log("From event.currentTarget")
65
+ await shell.openExternal(link.currentTarget.href)
66
+ } else if(link.target && link.target.href) { // onClick event with a target
67
console.log("From event.target")
68
await shell.openExternal(link.target.href)
69
}
0 commit comments