Skip to content

Commit

Permalink
Fix for incorrect youtube redirect (iv-org#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilingu committed Nov 12, 2022
1 parent 7eed9d5 commit 51ba8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

const destinationPath = window.location.href.slice(window.location.origin.length)

q("#watch-on-youtube").href = "https://www.youtube.com" + destinationPath
q("#watch-on-youtube").href = "https://www.youtube.com/watch?v=" + destinationPath

for (const e of qa("[data-loading-message]")) {
e.textContent = e.getAttribute("data-loading-message")
Expand Down

0 comments on commit 51ba8ab

Please sign in to comment.