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) {
|
if (currentBrowser.firefox) {
|
||||||
return browser.runtime.getManifest().version;
|
return browser.runtime.getManifest().version;
|
||||||
} else if (currentBrowser.chrome) {
|
} else if (currentBrowser.chrome) {
|
||||||
return chrome.runtime.getManifest().version;
|
return chrome.runtime.getManifest().version;
|
||||||
} else if (currentBrowser.edge) {
|
}
|
||||||
return browser.runtime.getManifest().version;
|
}
|
||||||
}
|
getExtensionVersion() {
|
||||||
|
return Settings.getExtensionVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
compareExtensionVersions(a, b) {
|
compareExtensionVersions(a, b) {
|
||||||
|
@ -33,10 +33,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import BrowserDetect from '../ext/conf/BrowserDetect';
|
import BrowserDetect from '../ext/conf/BrowserDetect';
|
||||||
|
import Settings from '../ext/lib/Settings';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
addonVersion: browser.runtime.getManifest().version || chrome.runtime.getManifest().version,
|
addonVersion: Settings.getVersion(),
|
||||||
mailtoLink: 'mailto:tamius.han@gmail.com',
|
mailtoLink: 'mailto:tamius.han@gmail.com',
|
||||||
redditLink: '',
|
redditLink: '',
|
||||||
}
|
}
|
||||||
|
@ -48,12 +48,6 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
addonVersion: browser.runtime.getManifest().version || chrome.runtime.getManifest().version,
|
addonVersion: browser.runtime.getManifest().version || chrome.runtime.getManifest().version,
|
||||||
mailtoLink: 'mailto:tamius.han@gmail.com',
|
|
||||||
redditLink: '',
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
loggingEnabled: false,
|
loggingEnabled: false,
|
||||||
loggerSettings: '',
|
loggerSettings: '',
|
||||||
loggerSettingsError: false,
|
loggerSettingsError: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user