mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 18:25:51 +01:00
small refactorings
This commit is contained in:
@@ -90,6 +90,7 @@ async function activateOrOpenNote(noteId) {
|
||||
});
|
||||
}
|
||||
|
||||
/** @return {TabContext[]} */
|
||||
function getTabContexts() {
|
||||
return tabContexts;
|
||||
}
|
||||
@@ -119,12 +120,14 @@ function getActiveTabNote() {
|
||||
return activeContext ? activeContext.note : null;
|
||||
}
|
||||
|
||||
/** @return {string|null} */
|
||||
function getActiveTabNoteId() {
|
||||
const activeNote = getActiveTabNote();
|
||||
|
||||
return activeNote ? activeNote.noteId : null;
|
||||
}
|
||||
|
||||
/** @return {string|null} */
|
||||
function getActiveTabNoteType() {
|
||||
const activeNote = getActiveTabNote();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user