fix(changelog): fix changelog on new electron

This commit is contained in:
Alexey Kasyanchuk 2021-01-07 00:13:53 +03:00
parent 39d12f1d1a
commit 8522f00685

View File

@ -14,7 +14,8 @@ export const aboutMenuTemplateFunc = () => ({
parent: BrowserWindow.getFocusedWindow(), parent: BrowserWindow.getFocusedWindow(),
modal: true, modal: true,
webPreferences: { webPreferences: {
nodeIntegration: true nodeIntegration: true,
enableRemoteModule: true,
} }
}) })
win.setMenu(null) win.setMenu(null)
@ -24,6 +25,7 @@ export const aboutMenuTemplateFunc = () => ({
slashes: true slashes: true
})) }))
win.webContents.on('did-finish-load', () => { win.webContents.on('did-finish-load', () => {
logT('changelog', "finish load page, open changlog")
setTimeout(() => win.send('url', '/changelog'), 0) setTimeout(() => win.send('url', '/changelog'), 0)
}); });