0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

Support external feature flags

This commit is contained in:
Alejandro Alonso 2024-05-29 12:43:37 +02:00 committed by Andrey Antukh
parent 9c5f7373de
commit b847754e3b

View file

@ -130,6 +130,10 @@
(def worker-uri
(obj/get global "penpotWorkerURI" "/js/worker.js"))
(defn external-feature-flag [flag value]
(when-let [fn (obj/get global "externalFeatureFlag")]
(fn flag value)))
;; --- Helper Functions
(defn ^boolean check-browser? [candidate]