Open marco-faustinelli opened 9 years ago
It's a hack, but if you're using an iframe, you can do this:
window.sandbox.model.sandbox.console = {
log: function(msg) {
console.log(msg);
return msg;
}
};
[Edit:] The above fails when an async call is involved, unfortunately.. If I come up with a fix, I'll update here.
There should be a way to print stuff on the sandbox screen. I understand that
console.log
belongs to the browser console, but something likesandbox.log
should be available.