Microsoft has acquired GitHub. Decentraleyes has left GitHub. Welcome to its new home!

To participate, please register, or sign in with an existing GitLab.com, Bitbucket, or GitHub account.

Past contributions on GitHub? Be sure to reclaim your Comments, Issues, and Pull Requests.

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');
......
Markdown is supported
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