From 1b66383bacd062248babd9bede834c8c7d2f8647 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 19 Jun 2017 14:55:34 +0200 Subject: [PATCH] don't create color-picker if readonly --- www/whiteboard/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/whiteboard/main.js b/www/whiteboard/main.js index 40e76f9fd..1949549af 100644 --- a/www/whiteboard/main.js +++ b/www/whiteboard/main.js @@ -338,12 +338,12 @@ window.canvas = canvas; }); $rightside.append($forget); - makeColorButton($rightside); var editHash; if (!readOnly) { editHash = Cryptpad.getEditHashFromKeys(info.channel, secret.keys); + makeColorButton($rightside); } if (!readOnly) { Cryptpad.replaceHash(editHash); } };