From 2d2a3ad3ca33debfc8e23adad6f8c76e1fa56af4 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Fri, 4 May 2018 00:01:32 +0300 Subject: [PATCH] fix(linux): fix patching on some systems without electron --- src/background/dbPatcher.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/background/dbPatcher.js b/src/background/dbPatcher.js index 8ffe77c..a5554a7 100644 --- a/src/background/dbPatcher.js +++ b/src/background/dbPatcher.js @@ -27,6 +27,9 @@ module.exports = async (callback, mainWindow, sphinxApp) => { if(patchWindow) return + if(!BrowserWindow) + return + if(mainWindow) mainWindow.hide()