2
* uNav http://launchpad.net/unav
3
* Copyright (C) 2015 JkB https://launchpad.net/~joergberroth
5
* uNav is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* uNav is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
16
oxide.addMessageHandler("EXECUTE", function (msg) {
17
var event = new CustomEvent("ExecuteJavascript", {detail: msg.args.code});
18
document.dispatchEvent(event);
19
msg.reply({str: "Event received: " + msg.args.code});