mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 05:09:57 +02:00
refactor: Add getActiveViewType method to SplitViews class
This commit is contained in:
parent
856de195c8
commit
f5f5f4b9c1
1 changed files with 7 additions and 0 deletions
|
@ -172,6 +172,13 @@ export class SplitViews extends SplitViewsBase {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getActiveViewType() {
|
||||||
|
if (!this.isActivated) {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
return this.activeView.type;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {MockedExports.BrowserTab[]} tabs
|
* @param {MockedExports.BrowserTab[]} tabs
|
||||||
* @param {SplitType} type
|
* @param {SplitType} type
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue