Fix race condition #2

This commit is contained in:
yflory
2017-02-17 15:39:34 +01:00
parent 1540ae3f6f
commit c17f28e5fe
4 changed files with 20 additions and 10 deletions

View File

@@ -22,15 +22,15 @@ define([
Cryptpad: Cryptpad,
};
Cryptpad.styleAlerts();
Cryptpad.addLoadingScreen();
var ifrw = module.ifrw = $('#pad-iframe')[0].contentWindow;
var stringify = function (obj) {
return JSONSortify(obj);
};
$(function () {
Cryptpad.styleAlerts();
Cryptpad.addLoadingScreen();
var ifrw = module.ifrw = $('#pad-iframe')[0].contentWindow;
var stringify = function (obj) {
return JSONSortify(obj);
};
var toolbar;
var secret = Cryptpad.getSecrets();