JavaScript not asking permission to use camera
Briefly

The article discusses troubleshooting JavaScript code that involves accessing a webcam. It suggests that if console messages are not appearing, it may be due to fatal errors halting script execution—often caused by unresolved references. Specifically, an error related to 'CacheStore.js' is highlighted as irrelevant to the webcam functionality. The article further advises running a simplified code snippet to check for webcam access issues directly, emphasizing the need for correct links to the webcam code and effective error management.
If JavaScript isn't outputting either message to the console, it means that either: 1: the error it's displaying to you is being deemed fatal and stopping script execution, meaning your webcam code is not getting run.
Cache set failed: ReferenceError: caches is not defined at CacheStore.set (CacheStore.js:18:93) ... That's an error from your extension and nothing to do with the webcam code.
Read at SitePoint Forums | Web Development & Design Community
[
|
]