Fix incorrect y-websocket event name in sync wait
This commit is contained in:
1 parent
43c8cfd85a
commit
7b0cc2a807
1 file changed
+1
-1
@@ -688,7 +688,7 @@ async function tryOpenCollab(file: string, diskContent: string) {
|
||||
);
|
||||
|
||||
const synced = await new Promise<boolean>((resolve) => {
|
||||
session.provider.once("synced", (isSynced: boolean) => resolve(isSynced));
|
||||
session.provider.once("sync", (isSynced: boolean) => resolve(isSynced));
|
||||
}).catch(() => false);
|
||||
|
||||
if (app.activePath !== file) {
|
||||
|
||||
Reference in new issue
Block a user