Skip to content

Commit

Permalink
Merge pull request AutomaApp#1365 from Siykt/fix/dashboard-dont-open
Browse files Browse the repository at this point in the history
Fix: set default window size
  • Loading branch information
Kholid060 authored Sep 14, 2023
2 parents f1c27a8 + ded4bec commit 757677e
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 757677e

Please sign in to comment.