mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-03 05:23:17 +00:00
main: Use import() syntax for electron-connect.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -1046,7 +1046,7 @@ window.addEventListener('load', async () => {
|
||||
// Only start electron-connect (auto reload on change) when its ran
|
||||
// from `npm run dev` or `gulp dev` and not from `npm start`
|
||||
if (isDev && remote.getGlobal('process').argv.includes('--electron-connect')) {
|
||||
require('electron-connect').client.create();
|
||||
(await import('electron-connect')).client.create();
|
||||
}
|
||||
|
||||
const serverManagerView = new ServerManagerView();
|
||||
|
||||
Reference in New Issue
Block a user