Skip to content

Commit 352f364

Browse files
author
meow
committed
transform template string
1 parent 7940e91 commit 352f364

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ if (window.location.pathname.startsWith('/embed/')) {
767767

768768
// Create hyperlink for current instance
769769
redirect_element = document.createElement('a');
770-
redirect_element.setAttribute('href', `//${window.location.host}/watch?v=${window.location.pathname.replace('/embed/','')}`);
770+
redirect_element.setAttribute('href', location.pathname.replace('/embed/', '/watch?v='));
771771
redirect_element.appendChild(document.createTextNode('Invidious'));
772772

773773
watch_on_invidious_button.el().appendChild(redirect_element);

0 commit comments

Comments
 (0)