summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-04-08 19:54:49 +0300
committerAndrew Dolgov <[email protected]>2021-04-08 19:54:49 +0300
commitca5c66775a1c5d7928931cfead8ae4ac9d7b479a (patch)
tree0c3e8653fad3c090c466d6fb2ec3a80a786da59c /index.php
parent787cb6732840a7f0bb1d28bd076e8d16f329a59a (diff)
show git version in the UI
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.php b/index.php
index d5b3b76..ae2b158 100644
--- a/index.php
+++ b/index.php
@@ -85,8 +85,9 @@
console.log("service worker registered");
$(document).ready(function() {
- App.index_mode = "<?php echo $mode ?>";
- App.last_mtime = parseInt("<?php echo $last_mtime ?>");
+ App.index_mode = "<?= $mode ?>";
+ App.version = "<?= Config::get_version(true) ?>";
+ App.last_mtime = parseInt("<?= $last_mtime ?>");
App.init();
});
});