Skip to content

Commit

Permalink
Merge pull request #81 from VampireChicken12/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
VampireChicken12 authored Nov 12, 2023
2 parents efd1195 + 5ab5c9b commit 187a251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"watch": ["src", "utils", "vite.config.ts", "public", "public/locales"],
"ext": "ts,tsx,css,html,json",
"ignore": ["src/**/*.spec.ts", "public/locales/en-US.json.d.ts"],
"exec": "concurrently \"vite build\" -- \"ts-json-as-const public/locales/en-US.json\" -- \"prettier --write public/locales/en-US.json.d.ts\""
"exec": "concurrently \"vite build\" \"ts-json-as-const public/locales/en-US.json\" \"prettier --write public/locales/en-US.json.d.ts\""
}
3 changes: 3 additions & 0 deletions src/features/videoHistory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export async function setupVideoHistory() {
const playerContainer = isWatchPage() ? (document.querySelector("div#movie_player") as YouTubePlayerDiv | null) : isShortsPage() ? null : null;
// If player container is not available, return
if (!playerContainer) return;
const playerVideoData = await playerContainer.getVideoData();
// If the video is live return
if (playerVideoData.isLive) return;
const { video_id: videoId } = await playerContainer.getVideoData();
if (!videoId) return;
const videoElement = document.querySelector("video.video-stream.html5-main-video") as HTMLVideoElement | null;
Expand Down

0 comments on commit 187a251

Please sign in to comment.