Skip to content

Commit

Permalink
resolving git conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
kabir-afk committed Jun 19, 2024
2 parents f6b6e71 + e1fc49c commit 19a9db8
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions popup/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,21 +382,10 @@ var browser = (browserType === 'firefox') ? browser : (browserType === 'chrome')
ui = new UI();
ui.switchPanel( 'loaded' );
}
if (browserType === "chrome") {
chrome.runtime.onMessage.addListener((message, sender) => {
if (message.state === "ready") {
ui = new UI();
}
});
} else {
let state = _backgroundPage.state;
function waitWhileLoading() {
if (state === "ready") {
chrome.runtime.onMessage.addListener((message, sender) => {
console.log(sender);
if (message.state === "ready") {
ui = new UI();
} else {
setTimeout(waitWhileLoading, 100);
}
}
waitWhileLoading();
}
});
})();

0 comments on commit 19a9db8

Please sign in to comment.