Skip to content

Commit 309d095

Browse files
committed
Bypass _self target
1 parent 881cb5e commit 309d095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pushy/core.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
(not (.-metaKey e))
116116
(not (.-shiftKey e))
117117
;; Bypass if target = _blank
118-
(not (= "_blank" (.getAttribute el "target")))
118+
(not (get #{"_blank" "_self"} (.getAttribute el "target")))
119119
;; Bypass dispatch if middle click
120120
(not= 1 (.-button e)))
121121
(let [next-token (get-token-from-uri uri)]

0 commit comments

Comments
 (0)