cryptpad/www/common/sframe-app-outer.js

27 lines
762 B
JavaScript
Raw Permalink Normal View History

2017-08-28 10:25:05 +00:00
// Load #1, load as little as possible because we are in a race to get the loading screen up.
2014-10-31 15:42:58 +00:00
define([
2017-08-28 10:25:05 +00:00
'/bower_components/nthen/index.js',
'/api/config',
2017-12-01 15:05:20 +00:00
'/common/dom-ready.js',
2017-08-30 09:10:57 +00:00
'/common/sframe-common-outer.js'
2020-11-04 10:22:31 +00:00
], function (nThen, ApiConfig, DomReady, SFCommonO) {
2017-08-28 10:25:05 +00:00
2020-01-27 11:18:25 +00:00
var hash, href;
2017-08-28 10:25:05 +00:00
nThen(function (waitFor) {
2017-12-01 15:05:20 +00:00
DomReady.onReady(waitFor());
2017-08-28 10:25:05 +00:00
}).nThen(function (waitFor) {
2020-11-04 10:22:31 +00:00
var obj = SFCommonO.initIframe(waitFor, true);
href = obj.href;
hash = obj.hash;
2017-08-28 10:25:05 +00:00
}).nThen(function (/*waitFor*/) {
SFCommonO.start({
2020-11-06 16:13:41 +00:00
cache: true,
2021-03-08 09:59:54 +00:00
noDrive: true,
2020-01-27 11:18:25 +00:00
hash: hash,
href: href,
useCreationScreen: true,
messaging: true
});
2017-02-17 14:39:34 +00:00
});
2017-12-01 15:05:20 +00:00
});