diff --git a/www/js/platform.js b/www/js/platform.js index 36bad35..28e989d 100644 --- a/www/js/platform.js +++ b/www/js/platform.js @@ -8,6 +8,8 @@ var platform_type = ""; var platform_theme = "md"; +var app_version = "2.0.0"; + var nw_tray = null; var openBrowser = function (url) { @@ -214,4 +216,8 @@ function initPlatform() { } else { initBrowser(); } + + $.getJSON("package.json", function (data) { + app_version = data.version; + }); } \ No newline at end of file diff --git a/www/js/settings.js b/www/js/settings.js index b04d0fd..ff30b8f 100644 --- a/www/js/settings.js +++ b/www/js/settings.js @@ -62,7 +62,7 @@ var settings = [ }, { setting: "versions", - title: "TerranQuest v2.0.0", + title: "TerranQuest v" + app_version, text: "Copyright © 2014-2019 Netsyms Technologies. License: Mozilla Public License 2.0.", icon: "far fa-copyright margin-vertical", color: "gray",