transform template string

pull/3045/head
meow 2022-04-20 13:03:05 +03:00
rodzic 7940e91cbe
commit 352f3640cf
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -767,7 +767,7 @@ if (window.location.pathname.startsWith('/embed/')) {
// Create hyperlink for current instance
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'));
watch_on_invidious_button.el().appendChild(redirect_element);