mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-02 04:53:17 +00:00
webview: Remove did-navigate workaround
The Electron bug seems to have been fixed upstream. Meanwhile, the workaround had been causing the app to hang if it can’t connect to an organization at startup. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
5a571d66d0
commit
24de7ebb97
@@ -56,11 +56,9 @@ export default class WebView {
|
||||
) as HTMLElement;
|
||||
props.$root.append($element);
|
||||
|
||||
// Wait for did-navigate rather than did-attach to work around
|
||||
// https://github.com/electron/electron/issues/31918
|
||||
await new Promise<void>((resolve) => {
|
||||
$element.addEventListener(
|
||||
"did-navigate",
|
||||
"did-attach",
|
||||
() => {
|
||||
resolve();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user