mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-27 17:06:18 +00:00
Fix error during cljs compilation with prod profile
This commit is contained in:
parent
298f000fcb
commit
c61ce1892f
@ -1,6 +1,7 @@
|
|||||||
(ns status-im.utils.core
|
(ns status-im.utils.core
|
||||||
(:require [clojure.string :as str]
|
(:require [clojure.string :as str]
|
||||||
[cljs.tools.reader.edn :as edn]
|
#?(:cljs [cljs.tools.reader.edn :as edn]
|
||||||
|
:clj [clojure.tools.reader.edn :as edn])
|
||||||
[taoensso.timbre :as log]))
|
[taoensso.timbre :as log]))
|
||||||
|
|
||||||
(defn truncate-str
|
(defn truncate-str
|
||||||
@ -66,8 +67,9 @@
|
|||||||
[key coll]
|
[key coll]
|
||||||
(into {} (map #(vector (key %) %) coll)))
|
(into {} (map #(vector (key %) %) coll)))
|
||||||
|
|
||||||
(defn safe-read-message-content [content]
|
#?(:cljs
|
||||||
(try
|
(defn safe-read-message-content [content]
|
||||||
(edn/read-string content)
|
(try
|
||||||
(catch :default e
|
(edn/read-string content)
|
||||||
(log/warn "failed to transform message with " e))))
|
(catch :default e
|
||||||
|
(log/warn "failed to transform message with " e)))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user