Refactor project structure

This commit is contained in:
Thomas Nordquist
2019-04-07 20:16:48 +02:00
parent 16c72fa9be
commit e2c60cca64
44 changed files with 306 additions and 529 deletions

View File

@@ -19,7 +19,7 @@ if (!isDev) {
if (typeof options.platform === 'string' && typeof options.package === 'string') {
buildOptions = options
}
} catch (ignore) {}
} catch (loadingBuildOptionsMayFail) {}
console.log(buildOptions)
const electronTelemetry = electronTelemetryFactory('9b0c8ca04a361eb8160d98c5', buildOptions)
@@ -63,8 +63,13 @@ function createWindow() {
})
console.log('icon path', iconPath)
// and load the index.html of the app.
mainWindow.loadFile('app/build/index.html')
// Load the index.html of the app.
if (isDev) {
mainWindow.loadURL('http://localhost:8080')
} else {
mainWindow.loadFile('app/build/index.html')
}
// Emitted when the window is closed.
mainWindow.on('close', () => {