don't initialize until the store is ready

pull/1/head
ansuz 8 years ago
parent 93f5a3d3e9
commit aa91ebd24e

@ -276,7 +276,9 @@ define([
Cryptpad.alert("Server Connection Lost"); 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'] ['cut', 'paste', 'change', 'keyup', 'keydown', 'select', 'textInput']
.forEach(function (evt) { .forEach(function (evt) {

Loading…
Cancel
Save