Skip to content

Commit 4e3f16c

Browse files
committed
[fix] [#458] React Native support: catch invalid call
1 parent 654d844 commit 4e3f16c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/taoensso/sente.cljc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@
13501350

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

0 commit comments

Comments
 (0)