mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-29 01:41:33 +00:00
gh-13400: Fixed modal text being cutoff (gh-13410)
This commit is contained in:
@@ -1116,9 +1116,9 @@ class nsZenWindowSync {
|
||||
*/
|
||||
async #onTabSwitchOrWindowFocus(aWindow, aPreviousTab = null) {
|
||||
let activeBrowsers = aWindow.gBrowser.selectedBrowsers;
|
||||
let activeTabs = activeBrowsers.map(browser =>
|
||||
aWindow.gBrowser.getTabForBrowser(browser)
|
||||
);
|
||||
let activeTabs = activeBrowsers
|
||||
.map(browser => aWindow.gBrowser.getTabForBrowser(browser))
|
||||
.filter(tab => tab);
|
||||
// Ignore previous tabs that are still "active". These scenarios could happen for example,
|
||||
// when selecting on a split view tab that was already active.
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user