Commit d201e83c authored by Boris Kocherov's avatar Boris Kocherov

demo: catch if getContent() return undefined

parent f22b8ad4
......@@ -145,6 +145,9 @@
return g.getContent();
})
.push(function (ret) {
if (ret === undefined) {
ret = {};
}
document.getElementById("json_document_content").textContent =
JSON.stringify(ret, null, " ");
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment