mirror of
https://github.com/zotero/zotero.git
synced 2026-09-28 01:31:40 +00:00
delayGenerator(): Use native Promise#then()
This commit is contained in:
parent
496e067d11
commit
c607b8f455
1 changed files with 1 additions and 1 deletions
|
|
@ -748,7 +748,7 @@ Zotero.Utilities.Internal = {
|
|||
totalTime += delay;
|
||||
|
||||
Zotero.debug("Delaying " + delay + " ms");
|
||||
yield Zotero.Promise.delay(delay).return(true);
|
||||
yield Zotero.Promise.delay(delay).then(() => true);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue