From e77f833652575566f023888a3c4a20b21c82475e Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 25 Sep 2018 20:09:45 -0400 Subject: [PATCH] come back to this error --- www/common/cryptpad-common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 150d2a469..cd16309e7 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1367,6 +1367,9 @@ define([ console.log('Posting CONNECT'); postMessage('CONNECT', cfg, function (data) { + // XXX validate that data exists, probably return otherwise. + // got here via a reference error: + // uncaught exception: TypeError: data is undefined if (data.error) { throw new Error(data.error); } if (data.state === 'ALREADY_INIT') { data = data.returned;