I’ve noticed that when you try to change a const value the Chrome Console console returns the following error: Uncaught TypeError: Assignment to constant variable. Are there any special reasons for …
Tag: chromium
Can I programmatically detect whether a CORB error occurred?
I’m looking for a way to programmatically detect (using JavaScript) whether a resource load on my page (over which I have full control) was blocked by Cross-Origin Resource Blocking. For instance, because the response from https://example.com has Content-Type text/html; charset=UTF-8, the following HTML code would trigger a CORB error in Chromium-based browsers: But how can I detect that it occurred?
Best way to detect typed key on different systems and keyboards? Chrome mobile keyCode bug
I’m working on this special input and I need to allow / disallow some keys from being typed by the user. I’m doing the validation on the onKeyDown handler. This is what I was doing at first: But I was worried that the string names of the keys were not consistent across browsers, so someone here on SO told me
Combining audio and video tracks into new MediaStream
I need to get create a MediaStream using audio and video from different MediaStreams. In Firefox, I can instantiate a new MediaStream from an Array of tracks: var outputTracks = []; outputTracks …