🎨 Clean code

This commit is contained in:
Daniel 2024-12-10 09:20:16 +08:00
parent 51501ed4a0
commit 61623d3980
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -101,7 +101,7 @@ export class Wnd {
window.siyuan.menus.menu.remove();
event.stopPropagation();
event.preventDefault();
const frontend = getFrontend()
const frontend = getFrontend();
if ((["desktop", "desktop-window"].includes(frontend) && window.siyuan.config.system.os === "linux") ||
(frontend === "browser-desktop" && navigator.userAgent.indexOf("Linux") !== -1)) {
const activeElement = document.activeElement;