mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 16:06:11 +02:00
✨ Only print version on browser execution context.
This commit is contained in:
parent
6fc90e20e9
commit
ea2079f36f
2 changed files with 28 additions and 11 deletions
|
@ -15,13 +15,18 @@
|
|||
|
||||
(defn parse
|
||||
[version]
|
||||
(if (= version "%version%")
|
||||
(cond
|
||||
(= version "%version%")
|
||||
{:full "develop"
|
||||
:base "develop"
|
||||
:build 0
|
||||
:commit nil}
|
||||
|
||||
(string? version)
|
||||
(let [[base build commit] (str/split version #"-" 3)]
|
||||
{:full version
|
||||
:base base
|
||||
:build (d/parse-integer build)
|
||||
:commit commit})))
|
||||
:commit commit})
|
||||
|
||||
:else nil))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue