diff --git a/scripts/h5peditor-av.js b/scripts/h5peditor-av.js index 97e856d0..94e6eab7 100644 --- a/scripts/h5peditor-av.js +++ b/scripts/h5peditor-av.js @@ -319,7 +319,7 @@ H5PEditor.widgets.video = H5PEditor.widgets.audio = H5PEditor.AV = (function ($) var qualityName = (file.metadata && file.metadata.qualityName) ? file.metadata.qualityName : defaultQualityName; // Check if source is provider (Vimeo, YouTube, Panopto) - const isProvider = file.path && C.findProvider(file.path); + const isProvider = (file.path && C.findProvider(file.path)) ?? false; // Only allow single source if YouTube if (isProvider) {