Skip to content

Commit

Permalink
fix: ensure window focus transfer order
Browse files Browse the repository at this point in the history
  • Loading branch information
ACTCD committed Jan 30, 2024
1 parent b514e9b commit 4691267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ext/background/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,10 @@ browser.webNavigation.onCompleted.addListener(setBadgeCount);

// handle native app messages
const port = connectNative();
port.onMessage.addListener((message) => {
port.onMessage.addListener(async (message) => {
// console.info(message); // DEBUG
if (message.name === "SAVE_LOCATION_CHANGED") {
openExtensionPage();
await openExtensionPage();
if (message?.userInfo?.returnApp === true) {
sendNativeMessage({ name: "OPEN_APP" });
}
Expand Down

0 comments on commit 4691267

Please sign in to comment.