Fixed startup problem
authorRemixDev <deezloaderremix@gmail.com>
Mon, 13 May 2019 17:48:18 +0000 (19:48 +0200)
committerRemixDev <deezloaderremix@gmail.com>
Mon, 13 May 2019 17:48:18 +0000 (19:48 +0200)
app/main.js

index db382bc7be6f373996deaf06dbc984c4881d7c61..4bf312b3e336ac1cbdfab72314bda294cb399dde 100644 (file)
@@ -7,6 +7,7 @@ const os = require('os');
 loadSettings();
 
 const captcha = require('./utils/captcha');
+captcha.registerScheme();
 
 const theApp = require('./app');
 const WindowStateManager = require('electron-window-state-manager');
@@ -98,8 +99,6 @@ function createTray(){
 }
 
 function createWindow () {
-       // Register Captcha Scheme
-       captcha.registerScheme();
        // Create the browser window.
        mainWindow = new BrowserWindow({
                width: mainWindowState.width,