diff options
| author | meow <woem> | 2022-04-20 13:03:05 +0300 |
|---|---|---|
| committer | meow <woem> | 2022-04-25 10:17:12 +0300 |
| commit | 352f3640cfbe7930fd6765b4376d7735b39b0219 (patch) | |
| tree | 30954365f6be8b5847a9bfa48163dd0daf6fe6ae /assets/js | |
| parent | 7940e91cbe537689791c376e3c33bac65511d66e (diff) | |
| download | invidious-352f3640cfbe7930fd6765b4376d7735b39b0219.tar.gz invidious-352f3640cfbe7930fd6765b4376d7735b39b0219.tar.bz2 invidious-352f3640cfbe7930fd6765b4376d7735b39b0219.zip | |
transform template string
Diffstat (limited to 'assets/js')
| -rw-r--r-- | assets/js/player.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/player.js b/assets/js/player.js index 440f880a..e0c9829e 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -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); |
