mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
split window WIP
This commit is contained in:
@@ -3,7 +3,12 @@ import appContext from "../services/app_context.js";
|
||||
|
||||
export default class TabAwareWidget extends BasicWidget {
|
||||
isTab(tabId) {
|
||||
return this.tabContext && this.tabContext.tabId === tabId;
|
||||
if (Array.isArray(tabId)) {
|
||||
return this.tabContext && tabId.includes(this.tabContext.tabId);
|
||||
}
|
||||
else {
|
||||
return this.tabContext && this.tabContext.tabId === tabId;
|
||||
}
|
||||
}
|
||||
|
||||
isTabOrParent(tabId) {
|
||||
|
||||
Reference in New Issue
Block a user