Handle potential errors in flashSidebar method to prevent interruptions in compact mode functionality

This commit is contained in:
mr. M
2025-01-20 07:42:39 +01:00
parent 5c3c9f3dfa
commit 3aa2109986

View File

@@ -69,7 +69,11 @@ var gZenCompactModeManager = {
flashSidebarIfNecessary(aInstant = false) {
if (!aInstant && this.preference && lazyCompactMode.COMPACT_MODE_FLASH_ENABLED && !gZenGlanceManager._animating) {
this.flashSidebar();
try {
this.flashSidebar();
} catch (e) {
// Ignore errors
}
}
},