don't initialize until the store is ready
parent
93f5a3d3e9
commit
aa91ebd24e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue