Removed getYouTubeVideoStartTime

This commit is contained in:
Official Noob 2019-08-04 19:09:46 +01:00 committed by GitHub
parent d25792f39a
commit 9a32710ef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1143,14 +1143,3 @@ function sendRequestToCustomServer(type, fullAddress, callback) {
//submit this request
xmlhttp.send();
}
//returns the start time of the video if there was one specified (ex. ?t=5s)
function getYouTubeVideoStartTime(url) {
let searchParams = new URL(url).searchParams;
var startTime = searchParams.get("t");
if (startTime == null) {
startTime = searchParams.get("time_continue");
}
return startTime;
}