Fixed url object not being properly defined.

This commit is contained in:
Ajay Ramachandran 2019-08-10 20:53:43 -04:00
parent b700d4eec0
commit 15d6a48359

View file

@ -1,7 +1,8 @@
function getYouTubeVideoID(url) {
//Attempt to parse url
let urlObject = null;
try {
let urlObject = new URL(url);
urlObject = new URL(url);
} catch (e) {
console.error("[SB] Unable to parse URL: " + url);
return false