Skip to content

Commit

Permalink
Fix appears even when the data-category at turn on
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 authored and MrAlex94 committed Sep 24, 2024
1 parent 94020c2 commit 87de2a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions waterfox/browser/components/sidebar/experiments/prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,15 @@ function initSidebarCategory(document, { locale, BASE_URL, BASE_PREF }) {
id: 'tabsSidebarCategory',
'class': 'subcategory',
'data-category': 'paneTabsSidebar',
'hidden': 'true',
}, [
element(document, HTML, 'h1', [locale.get('preferencesCategoryName')]),
]));

preferenceItems.appendChild(element(document, XUL, 'groupbox', {
id: 'tabsSidebar_appearanceGroup',
'data-category': 'paneTabsSidebar',
'hidden': 'true',
}, [
element(document, XUL, 'label', [
element(document, HTML, 'h2', [locale.get('preferences_appearanceGroup_caption')]),
Expand Down Expand Up @@ -124,6 +126,7 @@ function initSidebarCategory(document, { locale, BASE_URL, BASE_PREF }) {
preferenceItems.appendChild(element(document, XUL, 'groupbox', {
id: 'tabsSidebar_autoStickyTabsBox',
'data-category': 'paneTabsSidebar',
'hidden': 'true',
}, [
element(document, XUL, 'label', { id: 'tabsSidebar_stickyActiveTabBox_caption' }, [
element(document, HTML, 'h2', [locale.get('config_autoStickyTab_caption')]),
Expand Down Expand Up @@ -157,6 +160,7 @@ function initSidebarCategory(document, { locale, BASE_URL, BASE_PREF }) {
preferenceItems.appendChild(element(document, XUL, 'groupbox', {
id: 'tabsSidebar_treeBehaviorGroup',
'data-category': 'paneTabsSidebar',
'hidden': 'true',
}, [
element(document, XUL, 'label', [
element(document, HTML, 'h2', [locale.get('preferences_treeBehaviorGroup_caption')]),
Expand Down Expand Up @@ -294,6 +298,7 @@ function initSidebarCategory(document, { locale, BASE_URL, BASE_PREF }) {
preferenceItems.appendChild(element(document, XUL, 'groupbox', {
id: 'tabsSidebar_autoAttachGroup',
'data-category': 'paneTabsSidebar',
'hidden': 'true',
}, [
element(document, XUL, 'label', [
element(document, HTML, 'h2', [locale.get('preferences_autoAttachGroup_caption')]),
Expand Down

0 comments on commit 87de2a0

Please sign in to comment.