diff options
author | Sheogorath | 2018-10-05 19:33:40 +0200 |
---|---|---|
committer | Sheogorath | 2018-11-11 12:44:19 +0100 |
commit | bcc914a7735290b86e0df428aed75dabdf9f1eca (patch) | |
tree | c7b2731235be1c08e3fc94cc85fd8ed21fac48e8 /app.js | |
parent | 4e5e7df4f8ed5b4317ab9205ceb8c2b3231517ad (diff) |
Add full version string
Currently we only provide the version from `package.json`. This means
that during updates of instances, e.g. the demo instance, which runs
latest master instead of a stable release, changes are not reflected to
the webclient.
This patch adds a fullversion string that contains the current commit
and this way makes that clients are notified about changes.
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r-- | app.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -178,6 +178,7 @@ app.set('view engine', 'ejs') // set generally available variables for all views app.locals.useCDN = config.useCDN app.locals.serverURL = config.serverURL +app.locals.sourceURL = config.sourceURL app.locals.allowAnonymous = config.allowAnonymous app.locals.allowAnonymousEdits = config.allowAnonymousEdits app.locals.allowPDFExport = config.allowPDFExport |