mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 20:17:05 +03:00
Fixed scope
This commit is contained in:
2
utils.js
2
utils.js
@@ -1,7 +1,7 @@
|
|||||||
function getYouTubeVideoID(url) {
|
function getYouTubeVideoID(url) {
|
||||||
|
|
||||||
try { // Attempt to parse url
|
try { // Attempt to parse url
|
||||||
let obj = new URL(url);
|
var obj = new URL(url);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("[SB] Unable to parser URL");
|
console.error("[SB] Unable to parser URL");
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user