🎨 Support for ignoring the prompt to add Microsoft Defender exclusions https://github.com/siyuan-note/siyuan/issues/13687

This commit is contained in:
Daniel 2024-12-31 23:45:24 +08:00
parent 8061a4e133
commit 23570d79ca
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
13 changed files with 16 additions and 12 deletions

View file

@ -15,6 +15,10 @@ export const processMessage = (response: IWebSocketData) => {
hideMessage(id);
});
}, {once: true});
document.querySelector("#message #ignoreAddMicrosoftDefenderExclusion")?.addEventListener("click", (event) => {
hideMessage(id);
fetchPost("/api/system/ignoreAddMicrosoftDefenderExclusion");
}, {once: true});
return false;
}
if ("cmsg" === response.cmd) {