From a74b1f53a97d04eff0f407f7523108ac0ed1ae60 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Thu, 29 Jan 2026 02:19:27 -0800 Subject: [PATCH] Fix standalone AbortSignal --- javascript/gallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {