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
12f9bfe8
Commit
12f9bfe8
authored
Apr 08, 2023
by
pythongosssss
Browse files
Better filename check
parent
79ff7d67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
web/scripts/app.js
web/scripts/app.js
+3
-3
No files found.
web/scripts/app.js
View file @
12f9bfe8
...
@@ -873,11 +873,11 @@ class ComfyApp {
...
@@ -873,11 +873,11 @@ class ComfyApp {
this
.
graph
.
configure
(
graphData
);
this
.
graph
.
configure
(
graphData
);
}
catch
(
error
)
{
}
catch
(
error
)
{
let
errorHint
=
""
;
let
errorHint
=
""
;
// Try extracting filename to see if it was caused by an extension
// Try extracting filename to see if it was caused by an extension
script
const
filename
=
error
.
fileName
||
(
error
.
stack
||
""
).
match
(
/
\/
([\/\w
-_
\.]
+
\.
js
)
:
(\d
*
)
:
(\d
*
)
/
)?.[
1
];
const
filename
=
error
.
fileName
||
(
error
.
stack
||
""
).
match
(
/
(
\/
extensions
\/
.*
\.
js
)
/
)?.[
1
];
const
pos
=
(
filename
||
""
).
indexOf
(
"
/extensions/
"
);
const
pos
=
(
filename
||
""
).
indexOf
(
"
/extensions/
"
);
if
(
pos
>
-
1
)
{
if
(
pos
>
-
1
)
{
errorHint
=
"
This may be due to the following
extension
:
"
+
filename
.
substring
(
pos
+
12
);
errorHint
=
"
This may be due to the following
script
:
"
+
filename
.
substring
(
pos
+
12
);
}
}
// Show dialog to let the user know something went wrong loading the data
// Show dialog to let the user know something went wrong loading the data
...
...
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