mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
This commit is contained in:
parent
f4c3be9bd0
commit
b7d44cb79e
2 changed files with 1 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue