Merge pull request #267 from mphelp/fix-clips

Fix Issue 180: clips not working
This commit is contained in:
DARKDRAGON532 authored and GitHub committed 2021-12-11 20:24:27 +05:30
commit f3159a4113
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");