Skip to content

Commit

Permalink
fix(changelog): fix changelog on new electron
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Jan 6, 2021
1 parent 8d48c80 commit 1d25ba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/background/menu/about_menu_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const aboutMenuTemplateFunc = () => ({
parent: BrowserWindow.getFocusedWindow(),
modal: true,
webPreferences: {
nodeIntegration: true
nodeIntegration: true,
enableRemoteModule: true,
}
})
win.setMenu(null)
Expand All @@ -24,6 +25,7 @@ export const aboutMenuTemplateFunc = () => ({
slashes: true
}))
win.webContents.on('did-finish-load', () => {
logT('changelog', "finish load page, open changlog")
setTimeout(() => win.send('url', '/changelog'), 0)
});

Expand Down

0 comments on commit 1d25ba0

Please sign in to comment.