We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 648d5ac commit c05c24eCopy full SHA for c05c24e
1 file changed
scripts/pack-utils/xpi.mjs
@@ -24,7 +24,13 @@ async function packXpi({
24
if (waitSubmit.length > 0) {
25
const last = waitSubmit[waitSubmit.length - 1];
26
// wait 60s for AMO submit
27
- await sleep(last + 60000);
+ const nextRun = last + 60000;
28
+ if (Date.now() < nextRun) {
29
+ console.log(
30
+ `[xpi] [${extensionConfig.id}] wait ${nextRun - Date.now()}ms`,
31
+ );
32
+ await sleep(nextRun - Date.now());
33
+ }
34
}
35
36
console.log(`[xpi] [${extensionConfig.id}] start signAddon`);
0 commit comments