Fix use of bluebird's .delay
This commit is contained in:
parent
cc47a3aab5
commit
887913de09
1 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ Zotero.Schema = new function(){
|
|||
return _initializeSchema()
|
||||
.then(function() {
|
||||
(Zotero.isStandalone ? Zotero.uiReadyPromise : Zotero.initializationPromise)
|
||||
.then(1000)
|
||||
.delay(1000)
|
||||
.then(async function () {
|
||||
await this.updateBundledFiles();
|
||||
if (Zotero.Prefs.get('automaticScraperUpdates')) {
|
||||
|
@ -221,7 +221,7 @@ Zotero.Schema = new function(){
|
|||
// In Standalone, don't load bundled files until after UI is ready. In Firefox, load them as
|
||||
// soon initialization is done so that translation works before the Zotero pane is opened.
|
||||
(Zotero.isStandalone ? Zotero.uiReadyPromise : Zotero.initializationPromise)
|
||||
.then(1000)
|
||||
.delay(1000)
|
||||
.then(async function () {
|
||||
await this.updateBundledFiles();
|
||||
if (Zotero.Prefs.get('automaticScraperUpdates')) {
|
||||
|
|
Loading…
Add table
Reference in a new issue