mirror of
https://github.com/penpot/penpot.git
synced 2025-02-04 13:29:14 -05:00
🐛 Fixes problem with localStorage in web worker
This commit is contained in:
parent
6d1a676f2f
commit
9f351ef155
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
(defn- load
|
(defn- load
|
||||||
[alias]
|
[alias]
|
||||||
(if (= *target* "nodejs")
|
(if (or (= *target* "nodejs") (not (exists? js/window)))
|
||||||
{}
|
{}
|
||||||
(let [data (.getItem js/localStorage (name alias))]
|
(let [data (.getItem js/localStorage (name alias))]
|
||||||
(if data
|
(if data
|
||||||
|
|
Loading…
Add table
Reference in a new issue