🎨 Clean code

This commit is contained in:
Daniel 2024-04-16 09:01:56 +08:00
parent 26984f39df
commit 94d3ccfa9f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
12 changed files with 39 additions and 39 deletions

View file

@ -811,7 +811,7 @@ export class Gutter {
});
}
}).element);
const range = getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : undefined
const range = getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : undefined;
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.addToDatabase,
accelerator: window.siyuan.config.keymap.general.addToDatabase.custom,
@ -1279,7 +1279,7 @@ export class Gutter {
});
}
}).element);
const range = getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : undefined
const range = getSelection().rangeCount > 0 ? getSelection().getRangeAt(0) : undefined;
window.siyuan.menus.menu.append(new MenuItem({
label: window.siyuan.languages.addToDatabase,
accelerator: window.siyuan.config.keymap.general.addToDatabase.custom,