Skip to content

Commit

Permalink
Fix bug preventing popup open on investigate
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenzocaputo committed Feb 2, 2025
1 parent 41fb8df commit 99829f1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,15 @@ browser.runtime.onInstalled.addListener(function(details) {
selectionText = indicatorParser.refangIndicator(selectionText);
[type, tld] = indicatorParser.getIndicatorType(selectionText);
}
browser.storage.local.set(
{
browser.browserAction.openPopup()
.then( () => {
browser.storage.local.set({
"indicator": {
"type": type,
"value": selectionText,
"tld": tld
}
})
.then( () => {
browser.browserAction.openPopup();
});
} else {
browser.tabs.query({active:true, lastFocusedWindow: true}).then(tabs => {
Expand Down

0 comments on commit 99829f1

Please sign in to comment.