mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
moved tab management to app context
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user