mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-28 15:38:30 +00:00
Update player.js
About issue : https://github.com/iv-org/invidious/issues/3933 I think it should be reviewed here:507bed6313/assets/js/player.js (L40)
short_url will be used here :507bed6313/assets/js/player.js (L119)
since get embedCode() a little further down returns a correct code by calling the same function on line 127 I would suggest changing this: "var short_url = location.origin + '/' + video_data.id + embed_url.search;" to this "var short_url = location.origin + '/watch?v=' + video_data.id + embed_url.search;"
This commit is contained in:
parent
507bed6313
commit
8f34dbdc50
@ -37,7 +37,7 @@ if (player_data.aspect_ratio) {
|
||||
|
||||
var embed_url = new URL(location);
|
||||
embed_url.searchParams.delete('v');
|
||||
var short_url = location.origin + '/' + video_data.id + embed_url.search;
|
||||
var short_url = location.origin + '/watch?v=' + video_data.id + embed_url.search;
|
||||
embed_url = location.origin + '/embed/' + video_data.id + embed_url.search;
|
||||
|
||||
var save_player_pos_key = 'save_player_pos';
|
||||
|
Loading…
Reference in New Issue
Block a user