Fix getting extension version in the popup
This commit is contained in:
parent
1c978e61b7
commit
77ee6be218
@ -52,14 +52,15 @@ class Settings {
|
||||
}
|
||||
}
|
||||
|
||||
getExtensionVersion() {
|
||||
static getExtensionVersion() {
|
||||
if (currentBrowser.firefox) {
|
||||
return browser.runtime.getManifest().version;
|
||||
} else if (currentBrowser.chrome) {
|
||||
return chrome.runtime.getManifest().version;
|
||||
} else if (currentBrowser.edge) {
|
||||
return browser.runtime.getManifest().version;
|
||||
}
|
||||
}
|
||||
}
|
||||
getExtensionVersion() {
|
||||
return Settings.getExtensionVersion();
|
||||
}
|
||||
|
||||
compareExtensionVersions(a, b) {
|
||||
|
@ -33,10 +33,12 @@
|
||||
|
||||
<script>
|
||||
import BrowserDetect from '../ext/conf/BrowserDetect';
|
||||
import Settings from '../ext/lib/Settings';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
addonVersion: browser.runtime.getManifest().version || chrome.runtime.getManifest().version,
|
||||
addonVersion: Settings.getVersion(),
|
||||
mailtoLink: 'mailto:tamius.han@gmail.com',
|
||||
redditLink: '',
|
||||
}
|
||||
|
@ -48,12 +48,6 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
addonVersion: browser.runtime.getManifest().version || chrome.runtime.getManifest().version,
|
||||
mailtoLink: 'mailto:tamius.han@gmail.com',
|
||||
redditLink: '',
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loggingEnabled: false,
|
||||
loggerSettings: '',
|
||||
loggerSettingsError: false,
|
||||
|
Loading…
Reference in New Issue
Block a user