mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 fix https://github.com/siyuan-note/siyuan/issues/8498 不要乱动代码哇
This commit is contained in:
parent
3839cff90c
commit
6189becad1
1 changed files with 1 additions and 1 deletions
|
|
@ -360,10 +360,10 @@ const boot = () => {
|
||||||
// 当前页面链接使用浏览器打开
|
// 当前页面链接使用浏览器打开
|
||||||
currentWindow.webContents.on("will-navigate", (event) => {
|
currentWindow.webContents.on("will-navigate", (event) => {
|
||||||
const url = event.url;
|
const url = event.url;
|
||||||
event.preventDefault();
|
|
||||||
if (url.startsWith(localServer)) {
|
if (url.startsWith(localServer)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
event.preventDefault();
|
||||||
shell.openExternal(url);
|
shell.openExternal(url);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue