"comfy/ldm/modules/vscode:/vscode.git/clone" did not exist on "fcb25d37dbd0bab5c1c1936778b41ab614dd3a6d"
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({
label.style.overflow = "auto";
label.style.maxHeight = "100%";
label.style.whiteSpace = "pre-wrap";
if (window.isSecureContext) {
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);
}
};
......
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