Update split view logic to check for 'zen-essential' attribute instead of pinned tabs

This commit is contained in:
mr. M
2025-02-27 00:30:12 +01:00
parent d6a1889e9f
commit 9fb2e9d30d
2 changed files with 10 additions and 6 deletions

View File

@@ -1359,8 +1359,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
* @returns {TabGroup} The tab group for split view tabs
*/
_getSplitViewGroup(tabs) {
// if any of tabs is pinned, return null
if (tabs.some((tab) => tab.pinned)) {
if (tabs.some((tab) => tab.hasAttribute('zen-essential'))) {
return null;
}