mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-01 12:33:31 +00:00
Use optional catch binding.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -627,7 +627,7 @@ class ServerManagerView {
|
||||
|
||||
try {
|
||||
this.tabs[index].webview.canGoBackButton();
|
||||
} catch (_) {
|
||||
} catch {
|
||||
}
|
||||
|
||||
this.activeTabIndex = index;
|
||||
@@ -893,7 +893,7 @@ class ServerManagerView {
|
||||
webviews.forEach(webview => {
|
||||
try {
|
||||
webview.setAudioMuted(state);
|
||||
} catch (_) {
|
||||
} catch {
|
||||
// Webview is not ready yet
|
||||
webview.addEventListener('dom-ready', () => {
|
||||
webview.setAudioMuted(state);
|
||||
|
||||
Reference in New Issue
Block a user