Skip to content

Commit

Permalink
[fix] [#458] Catch invalid call on React Native, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Dec 30, 2024
1 parent 5f29642 commit 3b6d1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/taoensso/sente.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@

(def client-unloading?_ (atom false))
#?(:cljs
(when-not node-target?
(enc/catching ; Not possible on Node, React Native, etc.
(.addEventListener goog/global "beforeunload"
(fn [event] (reset! client-unloading?_ true) nil))))

Expand Down

0 comments on commit 3b6d1a3

Please sign in to comment.