From 5efc52cf5cec2b9b5f75351da8e473c2f90266b5 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 1 Sep 2011 10:29:28 +0200 Subject: Eliminating MakeJSONRPC calls and fixing multiple logins. Fixes #113. --- data/lib/bzpage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/lib/bzpage.js') diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js index 4401792..d4c393f 100644 --- a/data/lib/bzpage.js +++ b/data/lib/bzpage.js @@ -36,7 +36,7 @@ self.on('message', function onMessage(msg) { equivalentComponents = ("equivalentComponents" in constantData) ? constantData.equivalentComponents : null; generateButtons(msg.data.instPkgs, msg.data.kNodes); - completeInit(); + JSONRPCLogin(completeInit); break; case "Error": alert("Error " + msg.data); @@ -44,8 +44,8 @@ self.on('message', function onMessage(msg) { case "Unhandled": break; default: - if (TweakOnMessageHandler) { - TweakOnMessageHandler(msg, [RHOnMessageHandler, MozOnMessageHandler]); + if (RHOnMessageHandler) { + RHOnMessageHandler(msg, [MozOnMessageHandler]); } else { console.error("Error: unknown RPC call " + msg.toSource()); -- cgit