don't initialize until the store is ready
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user