Removed the need for getYouTubeVideoStartTime and made it check the current video time instead.

This commit is contained in:
Ajay Ramachandran
2019-08-21 14:16:52 -04:00
parent 118804e139
commit c1aebf45c8
2 changed files with 4 additions and 21 deletions

View File

@@ -23,15 +23,4 @@ function getYouTubeVideoID(url) {
return false;
}
}
}
//returns the start time of the video if there was one specified (ex. ?t=5s)
function getYouTubeVideoStartTime(url) {
let searchParams = new URL(url).searchParams;
let startTime = searchParams.get("t");
if (startTime == null) {
startTime = searchParams.get("time_continue");
}
return startTime;
}
}