Verified Commit 901fe958 authored by Dominique Feyer's avatar Dominique Feyer
Browse files

BUGFIX: tech can be undefined in old browser

parent fb4542e5
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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++) {