This commit is contained in:
Vanessa 2022-10-25 12:20:43 +08:00
parent f4c3be9bd0
commit b7d44cb79e
2 changed files with 1 additions and 13 deletions

View file

@ -338,18 +338,6 @@ const boot = () => {
shell.openExternal(url)
})
// IFrame 块不跟随重定向 https://github.com/siyuan-note/siyuan/issues/6327
mainWindow.webContents.on('will-redirect', (event, url, isInPlace, isMainFrame) => {
if (url.startsWith('http://127.0.0.1:' + kernelPort)) {
return
}
if (!isMainFrame) {
event.preventDefault()
return
}
})
mainWindow.on('close', (event) => {
if (mainWindow && !mainWindow.isDestroyed()) {
mainWindow.webContents.send('siyuan-save-close', false)