mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -682,11 +682,10 @@ app.whenReady().then(() => {
|
||||
ipcMain.on("siyuan-export-prevent", (event, id) => {
|
||||
BrowserWindow.fromId(id).webContents.on("will-navigate", (event, url) => {
|
||||
const currentURL = new URL(event.sender.getURL());
|
||||
event.preventDefault();
|
||||
if (url.startsWith(getServer(currentURL.port))) {
|
||||
return;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
shell.openExternal(url);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user