Skip to content

Commit

Permalink
fix: default window size
Browse files Browse the repository at this point in the history
  • Loading branch information
Siykt committed Sep 13, 2023
1 parent f55be7a commit ded4bec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/background/BackgroundUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ class BackgroundUtils {
});
}
} else {
const curWin = await browser.windows.getCurrent();
const windowOptions = {
top: 0,
left: 0,
width: 715,
height: 715,
width: Math.min(curWin.width, 715),
height: Math.min(curWin.height, 715),
url: tabUrl,
type: 'popup',
};
Expand Down

0 comments on commit ded4bec

Please sign in to comment.