Refactor ZenSidebarManager to use dynamic Firefox version in default mobile user agent

This commit is contained in:
mr. M 2024-10-15 17:06:43 +02:00
parent 83a612c6e5
commit 686c364b59
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -15,7 +15,7 @@ class ZenBrowserManagerSidebar extends ZenDOMOperatedFeature {
_tabBrowserSet = new WeakMap();
tabBox;
DEFAULT_MOBILE_USER_AGENT = 'Mozilla/5.0 (Android 12; Mobile; rv:129.0) Gecko/20100101 Firefox/131.0';
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;