Add console error to builder when iframe preview receives invalid JSON to aid in debugging some cases of endless loading apps

This commit is contained in:
Andrew Kingston 2021-12-06 18:00:19 +00:00
parent adae966769
commit 20ee863780
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ export default `
try {
parsed = JSON.parse(event.data)
} catch (error) {
console.error("Client received invalid JSON")
// Ignore
}
if (!parsed) {