Skip to content

Commit

Permalink
refactor: Lets do parseInt for window size.
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed Aug 11, 2021
1 parent 6eb2219 commit 0cf324d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ if (firstLaunch) {
overwolf.windows.changePosition(
overlayWindowId,
30,
window.screen.availHeight / 4 - 50,
parseInt(window.screen.availHeight / 4 - 50),
console.log
);

overwolf.windows.changeSize(
{
window_id: overlayWindowId,
width: 400,
height: window.screen.availHeight * 0.5,
width: 250,
height: parseInt(window.screen.availHeight * 0.75),
auto_dpi_resize: false,
},
console.log
Expand Down

0 comments on commit 0cf324d

Please sign in to comment.