mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 Clean code
This commit is contained in:
parent
51501ed4a0
commit
61623d3980
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ export class Wnd {
|
||||||
window.siyuan.menus.menu.remove();
|
window.siyuan.menus.menu.remove();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
const frontend = getFrontend()
|
const frontend = getFrontend();
|
||||||
if ((["desktop", "desktop-window"].includes(frontend) && window.siyuan.config.system.os === "linux") ||
|
if ((["desktop", "desktop-window"].includes(frontend) && window.siyuan.config.system.os === "linux") ||
|
||||||
(frontend === "browser-desktop" && navigator.userAgent.indexOf("Linux") !== -1)) {
|
(frontend === "browser-desktop" && navigator.userAgent.indexOf("Linux") !== -1)) {
|
||||||
const activeElement = document.activeElement;
|
const activeElement = document.activeElement;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue