Protect against null mainWindow in captureAndSaveWindowStats (#2061)

pull/1/head
Scott Nonnenberg 7 years ago committed by GitHub
parent a0da73ca8d
commit 06a16baaa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -216,6 +216,10 @@ function createWindow() {
mainWindow = new BrowserWindow(windowOptions);
function captureAndSaveWindowStats() {
if (!mainWindow) {
return;
}
const size = mainWindow.getSize();
const position = mainWindow.getPosition();

Loading…
Cancel
Save