From 9f351ef1559eb79449b6a58e109fbd60432a48f8 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 27 Apr 2020 07:54:55 +0200 Subject: [PATCH] :bug: Fixes problem with localStorage in web worker --- frontend/src/uxbox/util/storage.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/uxbox/util/storage.cljs b/frontend/src/uxbox/util/storage.cljs index d20cf0e6f..466fc6c68 100644 --- a/frontend/src/uxbox/util/storage.cljs +++ b/frontend/src/uxbox/util/storage.cljs @@ -15,7 +15,7 @@ (defn- load [alias] - (if (= *target* "nodejs") + (if (or (= *target* "nodejs") (not (exists? js/window))) {} (let [data (.getItem js/localStorage (name alias))] (if data