Skip to content

Commit 132e92a

Browse files
authored
Add a null check for window in onResize() callback
1 parent 7ebd099 commit 132e92a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contents/ui/code/windows.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ function addListenersToClient(client) {
8080
}
8181

8282
function onWindowResize(window) {
83+
if (!window) return;
8384
if (activated) return;
8485
AssistManager.finishSnap(false); /// make sure we cleared all variables
8586

0 commit comments

Comments
 (0)