Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 249f602

Browse files
committed
Check for null mainWindow
1 parent 73951a7 commit 249f602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ var start_local_server = function() {
188188
});
189189
subpy.unref();
190190
} else {
191-
mainWindow.webContents.executeJavaScript("console.log('Unable to find OpenBazaar-Server at: '" + serverPath + "')");
191+
mainWindow && mainWindow.webContents.executeJavaScript("console.log('Unable to find OpenBazaar-Server at: '" + serverPath + "')");
192192
}
193193
if (fs.existsSync(__dirname + path.sep + '..' + path.sep + 'gpg')) {
194194
process.env.PATH = __dirname + path.sep + '..' + path.sep + 'gpg' + path.sep + 'pub' + path.sep + ';' + process.env.PATH;

0 commit comments

Comments
 (0)