Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PhieF/CarnetElectron.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2018-10-28 17:55:59 +0300
committerPhie <phie@phie.ovh>2018-10-28 17:55:59 +0300
commit401efec595698e565f4ecd324db5f0bdc637b054 (patch)
tree77244529b59b0df769b79f536e34f88c62e23369 /main.js
parent549a76e2776ba11acf72518721494286fc088b02 (diff)
no first launch window
Diffstat (limited to 'main.js')
-rw-r--r--main.js22
1 files changed, 1 insertions, 21 deletions
diff --git a/main.js b/main.js
index ef9929d..8c89f14 100644
--- a/main.js
+++ b/main.js
@@ -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