Adjustment to beta version numbers
This commit is contained in:
parent
6fdbe33597
commit
aa12a57f2a
|
@ -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();
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue