mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 23:59:59 +02:00
Made web panels limit customizeable
This commit is contained in:
parent
6f05fb2acb
commit
4c79e99adf
1 changed files with 2 additions and 3 deletions
|
@ -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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue