WormChickenWizard found typo: clip not clips for video id retrieval

This commit is contained in:
mphelp committed 2021-12-11 08:52:13 -06:00
1 parent 1959c8ba23
commit a303356d8c
3 files changed
+3 -3

No files matched your search

@@ -327,7 +327,7 @@ function setInitialState() {
function getVideoId() {
const urlObject = new URL(window.location.href);
const pathname = urlObject.pathname;
if (pathname.startsWith("/clips")) {
if (pathname.startsWith("/clip")) {
return document.querySelector("meta[itemprop='videoId']").content;
} else {
return urlObject.searchParams.get("v");