diff options
author | hackademix <giorgio@maone.net> | 2018-07-29 17:35:50 +0200 |
---|---|---|
committer | hackademix <giorgio@maone.net> | 2018-07-29 17:35:50 +0200 |
commit | 3dec5974112550595e8451666cb94b0690096542 (patch) | |
tree | f10718d96461818ad2b574e45a1c9be8e7626161 /html | |
parent | 0f938f6dd25dbad9f7a25255c87ae95d3258d43a (diff) |
Display actual extension version number in UI
Diffstat (limited to 'html')
-rw-r--r-- | html/display_panel/content/display-panel.html | 5 | ||||
-rw-r--r-- | html/display_panel/content/main_panel.js | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/html/display_panel/content/display-panel.html b/html/display_panel/content/display-panel.html index 4f2da4f..2879826 100644 --- a/html/display_panel/content/display-panel.html +++ b/html/display_panel/content/display-panel.html @@ -11,6 +11,7 @@ * Copyright (C) 2011, 2012, 2014 Loic J. Duros * Copyright (C) 2017, 2018 NateN1222 <nathannichols454@gmail.com> * Copyright (C) 2018 Ruben Rodriguez <ruben@gnu.org> + * Copyright (C) 2018 Giorgio Maone <giorgio@maone.net> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,7 +31,6 @@ </head> <body> - <script src="main_panel.js"></script> <div id="header"> <div class="title-area"> <div> @@ -46,7 +46,7 @@ id="librejs-web-link">gnu.org/software/librejs</a> </div> <div> - <strong>LibreJS 7.0</strong> + <strong>LibreJS <span id="version"></span></strong> </div> </div> <div id="buttons" class="title-area"> @@ -73,4 +73,5 @@ </div> </div> </body> +<script src="main_panel.js"></script> </html> diff --git a/html/display_panel/content/main_panel.js b/html/display_panel/content/main_panel.js index 3086859..edbd909 100644 --- a/html/display_panel/content/main_panel.js +++ b/html/display_panel/content/main_panel.js @@ -58,7 +58,8 @@ var myPort = webex.runtime.connect({name:"port-from-cs"}); var current_blocked_data; - +// Display the actual extension version Number +document.querySelector("#version").textContent = browser.runtime.getManifest().version; /* * Makes a button appear that calls a function when you press it. |