0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-26 08:29:42 -05:00

🐛 Fixes problem with localStorage in web worker

This commit is contained in:
alonso.torres 2020-04-27 07:54:55 +02:00
parent 6d1a676f2f
commit 9f351ef155

View file

@ -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