don't initialize until the store is ready

This commit is contained in:
ansuz 2016-08-25 11:23:51 +02:00
parent 93f5a3d3e9
commit aa91ebd24e
1 changed files with 3 additions and 1 deletions

View File

@ -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) {