mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 01:20:00 +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 [];
|
||||
}
|
||||
|
||||
getActiveViewType() {
|
||||
if (!this.isActivated) {
|
||||
return undefined;
|
||||
}
|
||||
return this.activeView.type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {MockedExports.BrowserTab[]} tabs
|
||||
* @param {SplitType} type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue