mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Fixed url object not being properly defined.
This commit is contained in:
parent
b700d4eec0
commit
15d6a48359
1 changed files with 2 additions and 1 deletions
3
utils.js
3
utils.js
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue