mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-03-03 20:30:07 +00:00
Extract file load to queue
This enables other parsers to keep their load function in the same file
This commit is contained in:
@@ -96,9 +96,9 @@ function escapeHTML(unsafeText) {
|
||||
}
|
||||
|
||||
// Queue calling function to process global queues
|
||||
function processQueue(queue, context, ...args) {
|
||||
async function processQueue(queue, context, ...args) {
|
||||
for (let i = 0; i < queue.length; i++) {
|
||||
queue[i].call(context, ...args);
|
||||
await queue[i].call(context, ...args);
|
||||
}
|
||||
}
|
||||
// The same but with return values
|
||||
|
||||
Reference in New Issue
Block a user