Commit d27fe650 authored by Romain Courteaud's avatar Romain Courteaud Committed by Jérome Perrin

Only display first result.

Hardcoded for now, as for the other gadgets
parent 59a852bb
...@@ -49,8 +49,9 @@ ...@@ -49,8 +49,9 @@
.push(function (result_list) { .push(function (result_list) {
gadget.props.element.querySelector(".json_input").textContent = gadget.props.element.querySelector(".json_input").textContent =
result_list[0]; result_list[0];
// XXX Hardcoded result
gadget.props.element.querySelector(".json_output").textContent = gadget.props.element.querySelector(".json_output").textContent =
result_list[1]; JSON.stringify(JSON.parse(result_list[1])[0].result);
}); });
}); });
......
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