moved tab management to app context

This commit is contained in:
zadam
2020-01-12 12:30:30 +01:00
parent 61474defff
commit 5e11840137
19 changed files with 235 additions and 231 deletions

View File

@@ -61,7 +61,7 @@ window.glob.noteChanged = noteDetailService.noteChanged;
window.glob.refreshTree = treeService.reload;
// required for ESLint plugin
window.glob.getActiveTabNote = noteDetailService.getActiveTabNote;
window.glob.getActiveTabNote = appContext.getActiveTabNote;
window.glob.requireLibrary = libraryLoader.requireLibrary;
window.glob.ESLINT = libraryLoader.ESLINT;
@@ -145,7 +145,7 @@ async function printActiveNote() {
return;
}
const $tabContext = noteDetailService.getActiveTabContext();
const $tabContext = appContext.getActiveTabContext();
if (!$tabContext) {
return;
}