Merge branch 'master' of https://github.com/thomasnordquist/MQTT-Explorer
This commit is contained in:
@@ -14,6 +14,8 @@ if (!isDev() && !runningUiTestOnCi()) {
|
||||
const electronTelemetry = electronTelemetryFactory('9b0c8ca04a361eb8160d98c5', buildOptions)
|
||||
}
|
||||
|
||||
app.commandLine.appendSwitch('--no-sandbox')
|
||||
|
||||
autoUpdater.logger = log
|
||||
log.info('App starting...')
|
||||
|
||||
@@ -33,7 +35,7 @@ async function createWindow() {
|
||||
loadDevTools()
|
||||
}
|
||||
|
||||
const iconPath = path.join(__dirname, 'icon.png')
|
||||
const iconPath = path.join(__dirname, '..', '..', 'icon.png')
|
||||
// Create the browser window.
|
||||
mainWindow = new BrowserWindow({
|
||||
width: 1024,
|
||||
@@ -42,13 +44,14 @@ async function createWindow() {
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
devTools: true,
|
||||
sandbox: false,
|
||||
},
|
||||
icon: iconPath,
|
||||
})
|
||||
|
||||
mainWindow.once('ready-to-show', () => {
|
||||
if (mainWindow) {
|
||||
runningUiTestOnCi && mainWindow.setFullScreen(true)
|
||||
runningUiTestOnCi() && mainWindow.setFullScreen(true)
|
||||
mainWindow.show()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user