diff options
author | Andrew Dolgov <[email protected]> | 2021-04-08 19:54:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-04-08 19:54:49 +0300 |
commit | ca5c66775a1c5d7928931cfead8ae4ac9d7b479a (patch) | |
tree | 0c3e8653fad3c090c466d6fb2ec3a80a786da59c /index.php | |
parent | 787cb6732840a7f0bb1d28bd076e8d16f329a59a (diff) |
show git version in the UI
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(); }); }); |