refactor: Update splitViews module and split-views configuration

This commit is contained in:
Mauro Balades 2024-08-06 18:31:24 +02:00
parent 4cae1153d7
commit 3b299aa604

View file

@ -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;