Skip to content

Commit

Permalink
removed unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kabir-afk committed Jun 14, 2024
1 parent 9dfaa56 commit d3bd590
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ var browser = (browserType === 'firefox') ? browser : (browserType === 'chrome')
}
_backgroundPage = await getBackgroundPage();
console.log("Background Page = ", _backgroundPage);
console.log("banana received: ",banana);
} else if (browserType === 'firefox') {
// Use Firefox WebExtensions API
_backgroundPage = await browser.runtime.getBackgroundPage();
banana = _backgroundPage.banana;
}

/* *********************************************************** */
Expand Down Expand Up @@ -379,13 +377,6 @@ var browser = (browserType === 'firefox') ? browser : (browserType === 'chrome')
return;
}
ui.switchPanel( 'loading' );
//banana = _backgroundPage.banana;

// now in case of the chrome,both popup and modal update,
// but in case of popup you have to off->on again in order to see changes
// and in FF popup UI updates first
// in both browsers for the changes to reflect in modal you have to
// send another signit.hinticon command in order to see changes

await sendMessageUp("changeUiLanguage",newLanguage);
ui = new UI();
Expand Down

0 comments on commit d3bd590

Please sign in to comment.