diff options
author | Ajay Ramachandran <[email protected]> | 2019-08-21 14:16:52 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2019-08-21 14:16:52 -0400 |
commit | c1aebf45c84e8141053eb736d8b29365fb12713b (patch) | |
tree | a9a41415e78aa4b476523e73f6fef197566c4764 /utils.js | |
parent | 118804e139edc2acb8fc85d27ba554b5be20a4c9 (diff) | |
download | SponsorBlock-c1aebf45c84e8141053eb736d8b29365fb12713b.tar.gz SponsorBlock-c1aebf45c84e8141053eb736d8b29365fb12713b.zip |
Removed the need for getYouTubeVideoStartTime and made it check the current video time instead.
Diffstat (limited to 'utils.js')
-rw-r--r-- | utils.js | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -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; -} +}
\ No newline at end of file |