diff --git a/release.config.cjs b/release.config.cjs index 7bde2c71..8deaa919 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -24,7 +24,7 @@ module.exports = { [ "@semantic-release/exec", { - verifyReleaseCmd: 'npm version ${nextRelease.version} -m "chore(release): ${nextRelease.version}";npm run build' + verifyReleaseCmd: "node -e \"const packageJson = require('./package.json');packageJson.version=${nextRelease.version}\";npm run build" } ] ], diff --git a/src/pages/content/index.tsx b/src/pages/content/index.tsx index 4ce90e98..0c6f4dda 100644 --- a/src/pages/content/index.tsx +++ b/src/pages/content/index.tsx @@ -12,7 +12,6 @@ import { } from "@/src/types"; // TODO: Add remaining time feature // TODO: Add always show progressbar feature -// TODO: Fix double running of code from video reloading when page first loads // Centralized Event Manager type EventCallback = (event: HTMLElementEventMap[K]) => void; @@ -1153,14 +1152,7 @@ function sendMessage(eventType: T, data: Omit { eventManager.removeAllEventListeners(); addScreenshotButton(); @@ -1172,7 +1164,7 @@ window.onload = function () { adjustVolumeOnScrollWheel(); setupVideoHistory(); }; - document.addEventListener("yt-navigate-finish", enableFeatures); + document.addEventListener("yt-player-updated", enableFeatures); /** * Listens for the "yte-message-from-youtube" event and handles incoming messages from the YouTube page. *