Vanessa 2023-01-05 09:44:18 +08:00
parent 25b8f08470
commit 77bd2634e1
4 changed files with 16 additions and 10 deletions

View file

@ -367,6 +367,7 @@ const initWindow = () => {
document.body.classList.add("body--blur");
});
ipcRenderer.on(Constants.SIYUAN_OPENURL, (event, url) => {
console.log(event, url)
if (!/^siyuan:\/\/blocks\/\d{14}-\w{7}/.test(url)) {
return;
}