Commit a0c15110 authored by Xiaowu Zhang's avatar Xiaowu Zhang

add error show dev

parent 493446e7
......@@ -191,7 +191,7 @@
return page_gadget.startService(options);
}
}).fail(function(e) {
console.log(e);
gadget.__element.getElementsByClassName("console")[0].innerHTML = JSON.stringify(e);
});
});
})(window, rJS, jQuery, RSVP);
\ No newline at end of file
......@@ -24,6 +24,9 @@
<div class="page">
</div>
<div class="console">
</div>
<div class="offline" data-gadget-url="../audioplayer_bridge/index.html" data-gadget-scope="offline" >
......
......@@ -228,7 +228,8 @@
return page_gadget.startService(options);
}
}).fail(function (e) {
console.log(e);
gadget.__element.getElementsByClassName('console')[0].
innerHTML = JSON.stringify(e);
});
});
}(window, rJS, jQuery, RSVP));
......@@ -24,6 +24,9 @@
<div class="page">
</div>
<div class="console">
</div>
<div class="offline" data-gadget-url="../audioplayer_bridge/index.html" data-gadget-scope="offline" >
......
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