Verified Commit 280cd3f1 authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Implement extension version label

parent 906ba1ff
......@@ -228,7 +228,7 @@ footer {
display: none;
}
.label-beta {
.label-version {
color: #6aac91;
font-size: 9px;
}
......
......@@ -23,7 +23,7 @@
<header>
<img class="icon-logo" src="icon.svg" alt="Extension Icon">
<div class="heading">Decentraleyes <sup class="label-beta">BETA</sup></div>
<div class="heading">Decentraleyes <sup id="version-label" class="label-version"></sup></div>
</header>
......
......@@ -52,7 +52,15 @@ popup._determineScriptDirection = function (language) {
document.addEventListener('DOMContentLoaded', function () {
let optionsButtonElement, optionsTitle, scriptDirection, i18nElements;
let version, optionsButtonElement, optionsTitle, scriptDirection, i18nElements;
version = browser.runtime.getManifest().version;
if (version.indexOf('beta') !== -1) {
version = 'BETA';
}
document.getElementById('version-label').innerText = version;
optionsButtonElement = document.getElementById('options-button');
optionsTitle = chrome.i18n.getMessage('optionsTitle');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment