Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
8ee04736
Commit
8ee04736
authored
Aug 20, 2023
by
comfyanonymous
Browse files
Merge branch 'parallel-extensions-load' of
https://github.com/NoCrypt/ComfyUI
parents
e9469e73
81ccacaa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
web/scripts/app.js
web/scripts/app.js
+13
-10
No files found.
web/scripts/app.js
View file @
8ee04736
...
...
@@ -1026,18 +1026,21 @@ export class ComfyApp {
}
/**
* Loads all extensions from the API into the window
* Loads all extensions from the API into the window
in parallel
*/
async
#
loadExtensions
()
{
const
extensions
=
await
api
.
getExtensions
();
this
.
logging
.
addEntry
(
"
Comfy.App
"
,
"
debug
"
,
{
Extensions
:
extensions
});
for
(
const
ext
of
extensions
)
{
const
extensionPromises
=
extensions
.
map
(
async
ext
=>
{
try
{
await
import
(
api
.
apiURL
(
ext
));
}
catch
(
error
)
{
console
.
error
(
"
Error loading extension
"
,
ext
,
error
);
}
}
});
await
Promise
.
all
(
extensionPromises
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment