Adjustment to beta version numbers

This commit is contained in:
nobody 2021-01-16 07:56:50 +01:00
parent 6fdbe33597
commit aa12a57f2a
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
3 changed files with 2 additions and 10 deletions

View File

@ -174,14 +174,6 @@ helpers.formatNumber = function (number) {
}
};
helpers.formatVersion = function (version) {
if (version.indexOf('beta') === -1) {
return version;
} else {
return 'BETA';
}
};
helpers.formatFilename = function (targetPath) {
if (targetPath.startsWith('resources/element-ui/')) {
targetPath = targetPath.toLowerCase();

View File

@ -51,7 +51,7 @@ options._renderContents = function () {
options._platformSupportIcons = false;
}
options._renderInfoPanel();
document.getElementById('label-version').textContent = helpers.formatVersion(chrome.runtime.getManifest().version);
document.getElementById('label-version').textContent = chrome.runtime.getManifest().version;
};
options._renderOptionsPanel = function () {

View File

@ -420,7 +420,7 @@ popup._onDocumentLoaded = function () {
language = navigator.language;
popup._name = manifest.name;
popup._version = helpers.formatVersion(manifest.version);
popup._version = manifest.version;
popup._scriptDirection = helpers.determineScriptDirection(language);
popup._determineAmountInjected()