cryptpad/www/worker/main.js

20 lines
566 B
JavaScript
Raw Normal View History

2017-12-01 14:03:01 +00:00
// Load #1, load as little as possible because we are in a race to get the loading screen up.
define([
'/bower_components/nthen/index.js',
'/api/config',
2017-12-01 17:29:59 +00:00
'/common/dom-ready.js',
2017-12-01 14:03:01 +00:00
'/common/sframe-common-outer.js'
2020-11-04 10:22:31 +00:00
], function (nThen, ApiConfig, DomReady, SFCommonO) {
2017-12-01 14:03:01 +00:00
// Loaded in load #2
nThen(function (waitFor) {
2017-12-01 17:29:59 +00:00
DomReady.onReady(waitFor());
2017-12-01 14:03:01 +00:00
}).nThen(function (waitFor) {
2020-11-04 10:22:31 +00:00
SFCommonO.initIframe(waitFor);
2017-12-01 14:03:01 +00:00
}).nThen(function (/*waitFor*/) {
SFCommonO.start({
noRealtime: true,
});
});
});