We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d764cb5 commit b753820Copy full SHA for b753820
index.js
@@ -45,7 +45,7 @@ module.exports = function (options) {
45
};
46
}
47
48
- function windowWithinBounds(state, bounds) {
+ function windowWithinBounds(bounds) {
49
return (
50
state.x >= bounds.x &&
51
state.y >= bounds.y &&
@@ -56,7 +56,7 @@ module.exports = function (options) {
56
57
function ensureWindowVisibleOnSomeDisplay() {
58
const visible = screen.getAllDisplays().some(display => {
59
- return windowWithinBounds(state, display.bounds);
+ return windowWithinBounds(display.bounds);
60
});
61
62
if (!visible) {
0 commit comments