delayGenerator(): Use native Promise#then()

This commit is contained in:
Abe Jellinek 2025-07-01 12:05:48 -04:00 • committed by Dan Stillman
parent 496e067d11
commit c607b8f455

View file

@ -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);
}
},