diff options
Diffstat (limited to 'data/lib/bzpage.js')
-rw-r--r-- | data/lib/bzpage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js index 02c8e3c..76dd1a7 100644 --- a/data/lib/bzpage.js +++ b/data/lib/bzpage.js @@ -21,7 +21,7 @@ var equivalentComponents = null; /** * central handler processing messages from the main script. */ -onMessage = function onMessage(msg) { +self.on('message', function onMessage(msg) { console.log("onMessage - incoming : msg.cmd = " + msg.cmd); switch (msg.cmd) { case "ReloadThePage": @@ -50,7 +50,7 @@ onMessage = function onMessage(msg) { console.error("Error: unknown RPC call " + msg.toSource()); } } -}; +}); /** * @param cmd |