Skip to content

Commit

Permalink
Merge branch 'fix/window-prompt' into tmp/20240725
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvvvv1vvvvvv committed Jul 26, 2024
2 parents 64a009f + 8293f91 commit 4dfcac5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/background/webapi/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ const create = async ({ url, ...rest }): Promise<number | undefined> => {
}
// shim firefox
if (win.left !== left && currentWindow.state !== 'fullscreen') {
await browser.windows.update(win.id!, { left, top });
try {
await browser.windows.update(win.id!, { left, top });
} catch (e) {
// nothing to do, just avoid error prevent id response
}
}

return win.id;
Expand Down

0 comments on commit 4dfcac5

Please sign in to comment.