cryptpad/www/calendar/main.js

25 lines
736 B
JavaScript
Raw Normal View History

2021-04-02 11:44:28 +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',
'/common/dom-ready.js',
'/common/sframe-common-outer.js',
], function (nThen, ApiConfig, DomReady, SFCommonO) {
// Loaded in load #2
nThen(function (waitFor) {
DomReady.onReady(waitFor());
}).nThen(function (waitFor) {
SFCommonO.initIframe(waitFor);
}).nThen(function (/*waitFor*/) {
2021-04-08 12:02:39 +00:00
var addData = function (meta) {
2021-04-06 16:21:48 +00:00
meta.calendarHash = Boolean(window.location.hash);
2021-04-02 11:44:28 +00:00
};
SFCommonO.start({
2021-04-06 16:21:48 +00:00
addData: addData,
2021-04-06 12:03:51 +00:00
noRealtime: true,
cache: true,
2021-04-02 11:44:28 +00:00
});
});
});