fix(changelog): fix changelog on new electron
This commit is contained in:
parent
39d12f1d1a
commit
8522f00685
@ -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)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user