From a1c19be9c7499d7f8fd70411917fd742c151551b Mon Sep 17 00:00:00 2001 From: Timoteus Ruotsalainen Date: Wed, 13 Sep 2017 16:25:20 +0300 Subject: [PATCH 1/2] update instructions for bumping version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7bea477..4e1c924 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Either follow the original documentation by Google: https://developer.chrome.com or you can use the `build-and-package.sh` to pack the exension - First get the private key for Duke. Save it to some file i.e. `/Users/myname/key.pem` -- Bump version in manifest.json +- Bump version like in this commit https://github.com/giosg/duke/commit/0cc73a9f333a57b52ced95900a43c8cefb63af25 - Build `duke.zip` with `build-and-package.sh` - Example usage `./build-and-package.sh --key=/Users/myname/key.pem` - The script should output `duke.zip` and you can upload that to Chrome Webstore From 28f4f4b22277d3d59a7f92c5b7c01e8b691f83ec Mon Sep 17 00:00:00 2001 From: Timoteus Ruotsalainen Date: Thu, 8 Mar 2018 08:25:42 +0200 Subject: [PATCH 2/2] show chat window even if no operators online --- app/scripts/postmessagelistener.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/scripts/postmessagelistener.js b/app/scripts/postmessagelistener.js index 1153455..68fdcf0 100644 --- a/app/scripts/postmessagelistener.js +++ b/app/scripts/postmessagelistener.js @@ -162,8 +162,13 @@ }; DukePostMessageClient.prototype.on_showClient = function(data) { - GiosgClient.createChatDialog(); - GiosgClient.showClient(); + if (GiosgClient.isOperatorOnline === true) { + GiosgClient.showClient(); + GiosgClient.createChatDialog(); + } else { + var room = giosg.rooms[0]; + GiosgClient.showClient(false, room); + } this.sendResponse(data.query, {}); };