diff --git a/release.config.cjs b/release.config.cjs index 8deaa919..7bde2c71 100644 --- a/release.config.cjs +++ b/release.config.cjs @@ -24,7 +24,7 @@ module.exports = { [ "@semantic-release/exec", { - verifyReleaseCmd: "node -e \"const packageJson = require('./package.json');packageJson.version=${nextRelease.version}\";npm run build" + verifyReleaseCmd: 'npm version ${nextRelease.version} -m "chore(release): ${nextRelease.version}";npm run build' } ] ], diff --git a/src/pages/content/index.tsx b/src/pages/content/index.tsx index 0c6f4dda..4ce90e98 100644 --- a/src/pages/content/index.tsx +++ b/src/pages/content/index.tsx @@ -12,6 +12,7 @@ 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; @@ -1152,7 +1153,14 @@ function sendMessage(eventType: T, data: Omit { eventManager.removeAllEventListeners(); addScreenshotButton(); @@ -1164,7 +1172,7 @@ window.onload = function () { adjustVolumeOnScrollWheel(); setupVideoHistory(); }; - document.addEventListener("yt-player-updated", enableFeatures); + document.addEventListener("yt-navigate-finish", enableFeatures); /** * Listens for the "yte-message-from-youtube" event and handles incoming messages from the YouTube page. *