Only print version on browser execution context.

This commit is contained in:
Andrey Antukh 2020-12-11 11:37:01 +01:00 committed by Alonso Torres
parent 6fc90e20e9
commit ea2079f36f
2 changed files with 28 additions and 11 deletions

View file

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