fix(linux): fix patching on some systems without electron

This commit is contained in:
Alexey Kasyanchuk
2018-05-04 00:01:32 +03:00
parent ed5bcfd13c
commit 2d2a3ad3ca

View File

@ -27,6 +27,9 @@ module.exports = async (callback, mainWindow, sphinxApp) => {
if(patchWindow) if(patchWindow)
return return
if(!BrowserWindow)
return
if(mainWindow) if(mainWindow)
mainWindow.hide() mainWindow.hide()