1
0
Fork 0
mirror of synced 2024-07-09 08:16:34 +12:00

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

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) {