diff options
author | Phie <phie@phie.ovh> | 2018-10-28 17:55:59 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2018-10-28 17:55:59 +0300 |
commit | 401efec595698e565f4ecd324db5f0bdc637b054 (patch) | |
tree | 77244529b59b0df769b79f536e34f88c62e23369 /main.js | |
parent | 549a76e2776ba11acf72518721494286fc088b02 (diff) |
no first launch window
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 22 |
1 files changed, 1 insertions, 21 deletions
@@ -138,23 +138,6 @@ function createWindow() { } -function firstLaunchWindow() { - - // Create the browser window. - var win = new BrowserWindow({ - width: 600, - height: 500, - frame: false, - icon: path.join(__dirname, 'assets/images/QuickDoc.png') - }) - - // and load the index.html of the app. - win.loadURL(url.format({ - pathname: path.join(__dirname, path.join('firstlaunch', 'slide.html')), - protocol: 'file:', - slashes: true - })) -} // This method will be called when Electron has finished // initialization and is ready to create browser windows. @@ -162,10 +145,7 @@ function firstLaunchWindow() { //app.on('ready', createWindow) -if (store.get("first_launch") == null) - app.on('ready', firstLaunchWindow) -else - app.on('ready', createWindow) +app.on('ready', createWindow) // Quit when all windows are closed. app.on('window-all-closed', () => { // On macOS it is common for applications and their menu bar |