mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 13:03:22 +00:00
xo: Fix @typescript-eslint/no-confusing-void-expression.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -378,7 +378,9 @@ class ServerManagerView {
|
||||
|
||||
this.showLoading(this.loading.has(this.tabs[this.activeTabIndex].webview.props.url));
|
||||
},
|
||||
onNetworkError: (index: number) => this.openNetworkTroubleshooting(index),
|
||||
onNetworkError: (index: number) => {
|
||||
this.openNetworkTroubleshooting(index);
|
||||
},
|
||||
onTitleChange: this.updateBadge.bind(this),
|
||||
nodeIntegration: false,
|
||||
preload: true
|
||||
@@ -543,7 +545,9 @@ class ServerManagerView {
|
||||
|
||||
this.showLoading(this.loading.has(this.tabs[this.activeTabIndex].webview.props.url));
|
||||
},
|
||||
onNetworkError: (index: number) => this.openNetworkTroubleshooting(index),
|
||||
onNetworkError: (index: number) => {
|
||||
this.openNetworkTroubleshooting(index);
|
||||
},
|
||||
onTitleChange: this.updateBadge.bind(this),
|
||||
nodeIntegration: true,
|
||||
preload: false
|
||||
@@ -790,16 +794,36 @@ class ServerManagerView {
|
||||
|
||||
registerIpcs(): void {
|
||||
const webviewListeners: Array<[string, (webview: WebView) => void]> = [
|
||||
['webview-reload', webview => webview.reload()],
|
||||
['back', webview => webview.back()],
|
||||
['focus', webview => webview.focus()],
|
||||
['forward', webview => webview.forward()],
|
||||
['zoomIn', webview => webview.zoomIn()],
|
||||
['zoomOut', webview => webview.zoomOut()],
|
||||
['zoomActualSize', webview => webview.zoomActualSize()],
|
||||
['log-out', webview => webview.logOut()],
|
||||
['show-keyboard-shortcuts', webview => webview.showKeyboardShortcuts()],
|
||||
['tab-devtools', webview => webview.openDevTools()]
|
||||
['webview-reload', webview => {
|
||||
webview.reload();
|
||||
}],
|
||||
['back', webview => {
|
||||
webview.back();
|
||||
}],
|
||||
['focus', webview => {
|
||||
webview.focus();
|
||||
}],
|
||||
['forward', webview => {
|
||||
webview.forward();
|
||||
}],
|
||||
['zoomIn', webview => {
|
||||
webview.zoomIn();
|
||||
}],
|
||||
['zoomOut', webview => {
|
||||
webview.zoomOut();
|
||||
}],
|
||||
['zoomActualSize', webview => {
|
||||
webview.zoomActualSize();
|
||||
}],
|
||||
['log-out', webview => {
|
||||
webview.logOut();
|
||||
}],
|
||||
['show-keyboard-shortcuts', webview => {
|
||||
webview.showKeyboardShortcuts();
|
||||
}],
|
||||
['tab-devtools', webview => {
|
||||
webview.openDevTools();
|
||||
}]
|
||||
];
|
||||
|
||||
for (const [channel, listener] of webviewListeners) {
|
||||
|
||||
Reference in New Issue
Block a user