mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 01:10:12 +02:00
refactor: Update splitViews module and split-views configuration
This commit is contained in:
parent
4cae1153d7
commit
3b299aa604
1 changed files with 2 additions and 3 deletions
|
@ -209,6 +209,7 @@ class SplitViewsBase extends SplitViewsUtils {
|
|||
*/
|
||||
updateSplitView(viewId) {
|
||||
let view = this.data.find(view => view.id === viewId);
|
||||
this.log(`updateSplitView: ${viewId}`);
|
||||
this.currentView = viewId;
|
||||
if (!view) {
|
||||
this.tabBrowser.removeAttribute(this.parentSplitIndicator);
|
||||
|
@ -316,10 +317,8 @@ export class SplitViews extends SplitViewsBase {
|
|||
/**
|
||||
* @param {MockedExports.BrowserTab[]} tabs
|
||||
* @param {SplitType} type
|
||||
* @private
|
||||
* @public
|
||||
*/
|
||||
// @ts-ignore
|
||||
// @ts-ignore
|
||||
createSplitView(tabs, type = this.config.defaultSplitView) {
|
||||
if (tabs.length < 2) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue