Skip to content

Commit b753820

Browse files
committed
remove redundant param in windowWithinBounds
1 parent d764cb5 commit b753820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = function (options) {
4545
};
4646
}
4747

48-
function windowWithinBounds(state, bounds) {
48+
function windowWithinBounds(bounds) {
4949
return (
5050
state.x >= bounds.x &&
5151
state.y >= bounds.y &&
@@ -56,7 +56,7 @@ module.exports = function (options) {
5656

5757
function ensureWindowVisibleOnSomeDisplay() {
5858
const visible = screen.getAllDisplays().some(display => {
59-
return windowWithinBounds(state, display.bounds);
59+
return windowWithinBounds(display.bounds);
6060
});
6161

6262
if (!visible) {

0 commit comments

Comments
 (0)