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*/) {
|
2018-01-08 16:36:44 +00:00
|
|
|
SFCommonO.start({
|
2020-11-06 16:13:41 +00:00
|
|
|
cache: true,
|
2020-01-27 11:18:25 +00:00
|
|
|
hash: hash,
|
|
|
|
href: href,
|
2018-09-06 16:41:22 +00:00
|
|
|
useCreationScreen: true,
|
|
|
|
messaging: true
|
2018-01-08 16:36:44 +00:00
|
|
|
});
|
2017-02-17 14:39:34 +00:00
|
|
|
});
|
2017-12-01 15:05:20 +00:00
|
|
|
});
|