Skip to content

Commit 74dd71a

Browse files
committed
fix(AOT): Resize JS error
1 parent c5e2a0d commit 74dd71a

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

alwaysontop/main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@ function setAspectRatioToResizeableWindow(win, aspectRatio) {
222222
}
223223
});
224224
win.on('resize', () => {
225+
if (!Array.isArray(oldSize) || oldSize.length !== 2) {
226+
// Adding this check because of reports for JS errors that oldSize is undefined.
227+
return;
228+
}
229+
225230
let [ width, height ] = win.getSize();
226231

227232
//we scale either width or height according to the other by checking which of the 2

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jitsi-meet-electron-utils",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "Utilities for jitsi-meet-electron project",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)