mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
check href exists
This commit is contained in:
@@ -55,7 +55,7 @@ function handleAnchorClick (e) {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
let href = e.target.href
|
||||
if (href.match(/^http:\/\/|https:\/\/|mailto:\/\//)) {
|
||||
if (href && href.match(/^http:\/\/|https:\/\/|mailto:\/\//)) {
|
||||
shell.openExternal(href)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user