fix display of fiddles that DON'T have compile errors
BUG=skia: Review URL: https://codereview.chromium.org/644253003
This commit is contained in:
parent
5bb9700b7e
commit
c9df8ce821
@ -269,7 +269,7 @@
|
|||||||
// image to display.
|
// image to display.
|
||||||
endWait();
|
endWait();
|
||||||
body = JSON.parse(e.target.response);
|
body = JSON.parse(e.target.response);
|
||||||
if (body.compileErrors.length) {
|
if (null != body.compileErrors && body.compileErrors.length) {
|
||||||
html = "";
|
html = "";
|
||||||
for (i = 0 ; i < body.compileErrors.length ; i++) {
|
for (i = 0 ; i < body.compileErrors.length ; i++) {
|
||||||
compileError = body.compileErrors[i];
|
compileError = body.compileErrors[i];
|
||||||
|
@ -937,9 +937,8 @@ func mainHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
m := response{
|
m := response{
|
||||||
Message: message,
|
Img: base64.StdEncoding.EncodeToString([]byte(png)),
|
||||||
Img: base64.StdEncoding.EncodeToString([]byte(png)),
|
Hash: hash,
|
||||||
Hash: hash,
|
|
||||||
}
|
}
|
||||||
resp, err := json.Marshal(m)
|
resp, err := json.Marshal(m)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user