"sgl-kernel/git@developer.sourcefind.cn:change/sglang.git" did not exist on "52c03f16b914a826b7f878d19671aa8a3a68c981"
Commit 1c4af591 authored by comfyanonymous's avatar comfyanonymous
Browse files

Better error message if the webcam node doesn't work.

parent 91590adf
...@@ -33,7 +33,13 @@ app.registerExtension({ ...@@ -33,7 +33,13 @@ app.registerExtension({
label.style.overflow = "auto"; label.style.overflow = "auto";
label.style.maxHeight = "100%"; label.style.maxHeight = "100%";
label.style.whiteSpace = "pre-wrap"; label.style.whiteSpace = "pre-wrap";
if (window.isSecureContext) {
label.textContent = "Unable to load webcam, please ensure access is granted:\n" + error.message; label.textContent = "Unable to load webcam, please ensure access is granted:\n" + error.message;
} else {
label.textContent = "Unable to load webcam. A secure context is required, if you are not accessing ComfyUI on localhost (127.0.0.1) you will have to enable TLS (https)\n\n" + error.message;
}
container.replaceChildren(label); container.replaceChildren(label);
} }
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment