Invert link 'target' check

This commit is contained in:
Alex King 2019-04-11 22:08:03 +02:00 committed by Juho Teperi
parent a25f336d80
commit b50b44cced

View file

@ -92,7 +92,8 @@
(not (.-ctrlKey e))
(not (.-metaKey e))
(not (.-shiftKey e))
(not (contains? #{"_blank" "_self"} (.getAttribute el "target")))
(or (not (.hasAttribute el "target"))
(contains? #{"" "_self"} (.getAttribute el "target")))
;; Left button
(= 0 (.-button e))
;; isContentEditable property is inherited from parents,