From ec2af3dcd3e608a6859f91292185a45b90146699 Mon Sep 17 00:00:00 2001 From: Gonzalo DCL Date: Wed, 24 Jul 2024 09:43:09 -0300 Subject: [PATCH] ignore e@ preview messages --- browser-interface/packages/entryPoints/startPreview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser-interface/packages/entryPoints/startPreview.ts b/browser-interface/packages/entryPoints/startPreview.ts index 7a919b828c..57d6fc34b7 100644 --- a/browser-interface/packages/entryPoints/startPreview.ts +++ b/browser-interface/packages/entryPoints/startPreview.ts @@ -35,7 +35,7 @@ export async function startPreview(unityInterface: IUnityInterface) { const ws = new WebSocket(`${location.protocol === 'https:' ? 'wss' : 'ws'}://${document.location.host}`) ws.addEventListener('message', (msg) => { - if (msg.data.startsWith('{')) { + if (msg.type === 'string' && msg.data.startsWith('{')) { logger.log('Update message from CLI', msg.data) const message: sdk.Messages = JSON.parse(msg.data) handleServerMessage(message)