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