From 7c6267740bcbd2555c5294ab6ec5664cae93419e Mon Sep 17 00:00:00 2001 From: Aamon <116033927+AAAMON@users.noreply.github.com> Date: Mon, 22 Jul 2024 08:34:35 +0300 Subject: [PATCH] Add let onMessage (from mock server) receive the auth message --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index d191b361cf..ed43e355b0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -140,9 +140,8 @@ export class DocEditor implements DocEditorInterface { this.fromOOHandler.setHandler((msg) => { if (msg.type == "auth") { this.handleAuth(msg); - } else { - this.server.onMessage(msg); } + this.server.onMessage(msg); }); }