mirror of
https://github.com/shuto-cn/cordova-plugin-inappbrowser.git
synced 2026-04-16 00:00:05 +08:00
ubuntu: implement inject* functions
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
oxide.addMessageHandler("EXECUTE", function(msg) {
|
||||
var code = msg.args.code;
|
||||
try {
|
||||
msg.reply({result: eval(code)});
|
||||
} catch(e) {
|
||||
msg.error("Code threw exception: \"" + e + "\"");
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user