pass showVersionIndicator as string paramater to displayBrowserActionBadge

This commit is contained in:
Aishat Akinyemi 2019-10-26 12:38:18 +01:00
parent f2243f9d11
commit 65c58667b1

View file

@ -1,8 +1,7 @@
const MAJOR_VERSIONS = ["2.3.0", "2.4.0"]; const MAJOR_VERSIONS = ["2.3.0", "2.4.0"];
const badge = { const badge = {
async init() { async init() {
const showVersionIndicator = await browser.windows.getCurrent(); this.displayBrowserActionBadge("showVersionIndicator");
this.displayBrowserActionBadge(showVersionIndicator);
}, },
disableAddon(tabId) { disableAddon(tabId) {