diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-06-05 11:10:23 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-06-05 11:10:23 -0500 |
| commit | 8521f0408709b26ce57e707f179721d9f78a6807 (patch) | |
| tree | 68bb21c0017d272af7ad7608d58eba4fbb420980 /assets | |
| parent | 8ba45808be779ead6298526f19f446919d3ccf8c (diff) | |
| download | invidious-8521f0408709b26ce57e707f179721d9f78a6807.tar.gz invidious-8521f0408709b26ce57e707f179721d9f78a6807.tar.bz2 invidious-8521f0408709b26ce57e707f179721d9f78a6807.zip | |
Use short URL for sharing videos
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/js/player.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/assets/js/player.js b/assets/js/player.js index 060400c9..82372185 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -25,12 +25,13 @@ if (player_data.aspect_ratio) { var embed_url = new URL(location); embed_url.searchParams.delete('v'); +short_url = location.origin + '/' + video_data.id + embed_url.search; embed_url = location.origin + '/embed/' + video_data.id + embed_url.search; var shareOptions = { socials: ["fbFeed", "tw", "reddit", "email"], - url: window.location.href, + url: short_url, title: player_data.title, description: player_data.description, image: player_data.thumbnail, |
