mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Tie bundled files update to initialization rather than timeout
This commit is contained in:
parent
5787b230f7
commit
391b2085b3
1 changed files with 8 additions and 6 deletions
|
|
@ -138,14 +138,16 @@ Zotero.Schema = new function(){
|
|||
}
|
||||
|
||||
// After a delay, start update of bundled files and repo updates
|
||||
setTimeout(function () {
|
||||
Zotero.initializationPromise
|
||||
.delay(5000)
|
||||
.then(function () {
|
||||
Zotero.UnresponsiveScriptIndicator.disable();
|
||||
Zotero.Schema.updateBundledFiles(null, false, true)
|
||||
return Zotero.Schema.updateBundledFiles(null, false, true)
|
||||
.finally(function () {
|
||||
Zotero.UnresponsiveScriptIndicator.enable();
|
||||
})
|
||||
.done();
|
||||
}, 5000);
|
||||
Zotero.UnresponsiveScriptIndicator.enable();
|
||||
});
|
||||
})
|
||||
.done();
|
||||
|
||||
return updated;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue