mirror of
https://github.com/iv-org/invidious
synced 2024-11-24 12:03:26 +01:00
transform template string
This commit is contained in:
parent
7940e91cbe
commit
352f3640cf
@ -767,7 +767,7 @@ if (window.location.pathname.startsWith('/embed/')) {
|
|||||||
|
|
||||||
// Create hyperlink for current instance
|
// Create hyperlink for current instance
|
||||||
redirect_element = document.createElement('a');
|
redirect_element = document.createElement('a');
|
||||||
redirect_element.setAttribute('href', `//${window.location.host}/watch?v=${window.location.pathname.replace('/embed/','')}`);
|
redirect_element.setAttribute('href', location.pathname.replace('/embed/', '/watch?v='));
|
||||||
redirect_element.appendChild(document.createTextNode('Invidious'));
|
redirect_element.appendChild(document.createTextNode('Invidious'));
|
||||||
|
|
||||||
watch_on_invidious_button.el().appendChild(redirect_element);
|
watch_on_invidious_button.el().appendChild(redirect_element);
|
||||||
|
Loading…
Reference in New Issue
Block a user