mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-01 09:34:37 +00:00
Handle potential errors in flashSidebar method to prevent interruptions in compact mode functionality
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user