Skip to content

Commit

Permalink
Bypass _self target
Browse files Browse the repository at this point in the history
  • Loading branch information
wavejumper committed Oct 6, 2015
1 parent 881cb5e commit 309d095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pushy/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
(not (.-metaKey e))
(not (.-shiftKey e))
;; Bypass if target = _blank
(not (= "_blank" (.getAttribute el "target")))
(not (get #{"_blank" "_self"} (.getAttribute el "target")))
;; Bypass dispatch if middle click
(not= 1 (.-button e)))
(let [next-token (get-token-from-uri uri)]
Expand Down

0 comments on commit 309d095

Please sign in to comment.