From 0373556475045df5a82e2fb8c37da2c4d9e57c50 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 9 Jan 2017 11:46:21 +0100 Subject: [PATCH] support old hashes in /poll --- www/poll/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/poll/main.js b/www/poll/main.js index e689d33a4..99b887e56 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -22,6 +22,9 @@ define([ var secret = Cryptpad.getSecrets(); var readOnly = secret.keys && !secret.keys.editKeyStr; + if (!secret.keys) { + secret.keys = secret.key; + } Cryptpad.addLoadingScreen(); var onConnectError = function (info) {