diff --git a/javascript/gallery.js b/javascript/gallery.js index d10e4974c..5791990c3 100644 --- a/javascript/gallery.js +++ b/javascript/gallery.js @@ -1256,7 +1256,7 @@ async function galleryClearInit() { async function blockQueueUntilReady() { // Add block to maintenanceQueue until cache is ready maintenanceQueue.enqueue({ - signal: new AbortSignal(), // Use standalone AbortSignal that can't be aborted + signal: new AbortController().signal, // Use standalone AbortSignal that can't be aborted callback: async () => { let timeout = 0; while (!idbIsReady() && timeout++ < 60) {