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:
parent
0a3dede736
commit
09dc17ca6a
|
@ -49,6 +49,7 @@ export default `
|
||||||
try {
|
try {
|
||||||
parsed = JSON.parse(event.data)
|
parsed = JSON.parse(event.data)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.error("Client received invalid JSON")
|
||||||
// Ignore
|
// Ignore
|
||||||
}
|
}
|
||||||
if (!parsed) {
|
if (!parsed) {
|
||||||
|
|
Loading…
Reference in New Issue