mirror of
https://github.com/penpot/penpot.git
synced 2026-05-08 01:28:44 +00:00
🐛 Fix not being able to enable wasm text editor via config flag
This commit is contained in:
parent
619842152d
commit
66ba097ba2
@ -55,10 +55,11 @@
|
||||
|
||||
(defn text-editor-wasm?
|
||||
[]
|
||||
(let [runtime-features (get @st/state :features-runtime)
|
||||
enabled-features (get @st/state :features)]
|
||||
(or (contains? runtime-features "text-editor-wasm/v1")
|
||||
(contains? enabled-features "text-editor-wasm/v1"))))
|
||||
(or (contains? cf/flags :feature-text-editor-wasm)
|
||||
(let [runtime-features (get @st/state :features-runtime)
|
||||
enabled-features (get @st/state :features)]
|
||||
(or (contains? runtime-features "text-editor-wasm/v1")
|
||||
(contains? enabled-features "text-editor-wasm/v1")))))
|
||||
|
||||
(def ^:const UUID-U8-SIZE 16)
|
||||
(def ^:const UUID-U32-SIZE (/ UUID-U8-SIZE 4))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user