Made web panels limit customizeable

This commit is contained in:
mr. M 2024-10-25 11:36:26 +02:00
parent 6f05fb2acb
commit 4c79e99adf
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -16,8 +16,7 @@ class ZenBrowserManagerSidebar extends ZenDOMOperatedFeature {
tabBox;
DEFAULT_MOBILE_USER_AGENT = `Mozilla/5.0 (Android 12; Mobile; rv:129.0) Gecko/20100101 Firefox/${AppConstants.ZEN_FIREFOX_VERSION}`;
MAX_SIDEBAR_PANELS = 9; // +1 for the add panel button
MAX_RUNS = 3;
MAX_SIDEBAR_PANELS = Services.prefs.getIntPref('zen.sidebar.max-webpanels');
init() {
ChromeUtils.defineLazyGetter(this, 'sidebar', () => document.getElementById('zen-sidebar-web-panel'));