BUGFIX: tech can be undefined in old browser

parent fb4542e5
Pipeline #1494 passed with stage
in 2 minutes and 8 seconds
......@@ -222,7 +222,7 @@ class ResolutionSwitchingButton extends VjsButtonResBBase {
tech = window.videojs.getTech(techName);
// Check if the browser supports this technology
if (tech.isSupported()) {
if (tech !== undefined && tech.isSupported()) {
// Loop through each source object
for (let a = 0, b = sources; a < b.length; a++) {
......
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