From aa91ebd24ed1721c0a790b529c7797ee70f9ba73 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 25 Aug 2016 11:23:51 +0200 Subject: [PATCH] don't initialize until the store is ready --- www/slide/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/slide/main.js b/www/slide/main.js index e03daa48e..86869a89b 100644 --- a/www/slide/main.js +++ b/www/slide/main.js @@ -276,7 +276,9 @@ define([ Cryptpad.alert("Server Connection Lost"); }; - var rt = Realtime.start(config); + Cryptpad.ready(function () { + var rt = Realtime.start(config); + }); ['cut', 'paste', 'change', 'keyup', 'keydown', 'select', 'textInput'] .forEach(function (evt) {