cryptpad/www/calendar/main.js

29 lines
939 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*/) {
var addData = function (meta, Cryptpad, user) {
// XXX flag when opening URL
2021-04-06 16:21:48 +00:00
meta.calendarHash = Boolean(window.location.hash);
2021-04-02 11:44:28 +00:00
};
SFCommonO.start({
//noHash: true, // Don't add the hash in the URL if it doesn't already exist
//addRpc: addRpc,
2021-04-06 16:21:48 +00:00
addData: addData,
2021-04-02 11:44:28 +00:00
//owned: true,
2021-04-06 12:03:51 +00:00
noRealtime: true,
cache: true,
2021-04-02 11:44:28 +00:00
});
});
});