mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix file app not able to load the account
This commit is contained in:
parent
6ac7e0fc8f
commit
e8dfdebeee
@ -3270,6 +3270,24 @@ const factory = (ApiConfig = {}, Sortify, UserObject, ProxyManager,
|
||||
onPadRejectedEvt.reg(next);
|
||||
});
|
||||
}
|
||||
if (requires === 'file') {
|
||||
// Start with only the pad modules, callback
|
||||
// and then load the account and other modules
|
||||
return void onNoDrive(clientId, function (obj) {
|
||||
if (obj && obj.error) {
|
||||
// handle error
|
||||
return; // XXX
|
||||
}
|
||||
// Callback now to unfreeze the loading screen
|
||||
// Pad can now start to be loaded
|
||||
cb(obj);
|
||||
loadDrive(clientId, data, ret => {
|
||||
startCacheModules(clientId, ret, onInit);
|
||||
}, ret => {
|
||||
startModules(clientId, ret, onInit);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if (requires === 'team') {
|
||||
const initTeams = Util.once(ret => {
|
||||
|
||||
@ -27,6 +27,7 @@ define([
|
||||
noDrive: true,
|
||||
hash: hash,
|
||||
href: href,
|
||||
requires: 'file',
|
||||
noRealtime: true,
|
||||
addData: addData
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user