diff options
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/main.js b/lib/main.js index cd8f259..a169fae 100644 --- a/lib/main.js +++ b/lib/main.js @@ -78,7 +78,7 @@ var messageHandler = exports.messageHandler = function messageHandler(worker, ms libbz.changeJSONURL(); break; case "OpenURLinPanel": - libbz.openURLinPanel(msg.data); + libbz.openURLInNewPanel(msg.data); break; case "OpenURLinTab": libbz.openURLInNewTab(msg.data); @@ -90,10 +90,7 @@ var messageHandler = exports.messageHandler = function messageHandler(worker, ms // url, login, method, params, callback libbz.makeXMLRPCCall(msg.data.url, msg.data.login, msg.data.method, msg.data.params, function(ret) { - worker.postMessage({ - payback: ret, - cbRPC: msg.data.callRPC - }); + worker.postMessage(new Message(msg.data.callRPC, ret)); }); break; case "GetURL": |