diff options
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/main.js b/lib/main.js index 643ef36..6a5e58c 100644 --- a/lib/main.js +++ b/lib/main.js @@ -42,15 +42,16 @@ var messageHandler = exports.messageHandler = function messageHandler( case "AddLogRecord": logger.addLogRecord(msg.data); break; - case "GenerateTS": - logger.generateTimeSheet(); - break; case "ClearTS": logger.clearTimeSheet(); break; case "ImportTS": logger.importTimeSheet(); break; + case "GetTSData": + worker.postMessage(new Message("ReturningLogData", + logger.getAllRecords())); + break; case "GetInstalledPackages": // send message with packages back libbz.getInstalledPackages(msg.data, function(pkgsMsg) { |