mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-25 01:20:24 +08:00
fix(link): allow links with no closest
method to open
This commit is contained in:
parent
d91966c5fb
commit
c8305cc04d
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class WindowEventHandler
|
|||
|
||||
return unless href
|
||||
|
||||
return if currentTarget.closest('.no-open-link-events')
|
||||
return if currentTarget?.closest?('.no-open-link-events')
|
||||
|
||||
schema = url.parse(href).protocol
|
||||
return unless schema
|
||||
|
|
Loading…
Reference in a new issue