We call console.log on the command we're about to execute. This is just to leave a log of it in the console log. Again, to make it look like a normal console.
I removed the isLoggable logic and decided that all responses should be logged.
Removed "unable to execute order" - just show the error in the console!
Don't pass boolean or undefined types to inspect - just pass back as string. Think this should fix #419.
This pull request attempts to make the console plugin behave like a regular browser console:
eval
which does the same thing but evaluates in the global scope. ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#Description - see last example ). Otherwise I think if you try to define a variable, it's just defined in the local scope ofevalOrderFromDashboard
.console.log
on the command we're about to execute. This is just to leave a log of it in the console log. Again, to make it look like a normal console.isLoggable
logic and decided that all responses should be logged.boolean
orundefined
types to inspect - just pass back as string. Think this should fix #419.