mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
Fix standalone AbortSignal
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user