mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-22 06:29:22 -04:00
Use short URL for sharing videos
This commit is contained in:
parent
8ba45808be
commit
8521f04087
2 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue