small refactorings

This commit is contained in:
zadam
2019-10-20 13:09:00 +02:00
parent 2305ad7405
commit 358fd13c8d
7 changed files with 44 additions and 25 deletions

View File

@@ -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();