diff --git a/editor/index.html b/editor/index.html index fb32317ee3757cf13a75df1aae02956c048093d3..516a406590b11cbe9aa4274603551f6164e48a00 100644 --- a/editor/index.html +++ b/editor/index.html @@ -258,7 +258,15 @@ // 3.0 - var data = JSON.parse( contents ); + try { + + var data = JSON.parse( contents ); + + } catch ( error ) { + + return alert( error ); + + } if ( data.metadata === undefined ) { // 2.0