Skip to content

Commit

Permalink
ignore e@ preview messages (#6238)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonpombo8 authored Jul 24, 2024
1 parent b3b170e commit 4fc34f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions browser-interface/packages/entryPoints/startPreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +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('{')) {
logger.log('Update message from CLI', msg.data)
if (typeof msg.data === 'string' && msg.data.startsWith('{')) {
const message: sdk.Messages = JSON.parse(msg.data)
handleServerMessage(message)
}
Expand Down

0 comments on commit 4fc34f2

Please sign in to comment.