9 lines
217 B
JavaScript
9 lines
217 B
JavaScript
![]() |
oxide.addMessageHandler("EXECUTE", function(msg) {
|
||
|
var code = msg.args.code;
|
||
|
try {
|
||
|
msg.reply({result: eval(code)});
|
||
|
} catch(e) {
|
||
|
msg.error("Code threw exception: \"" + e + "\"");
|
||
|
}
|
||
|
});
|