From ae40ae9af62185695b9c0ef813dfe955db682d51 Mon Sep 17 00:00:00 2001 From: "Dr.Caduceus" Date: Fri, 1 Dec 2023 21:53:08 +0530 Subject: [PATCH] Improve: Use download link with share button instead of current window's URL. Using download link instead of current window's URL make it possible to start playing the current media in external player. --- bot/server/templates/player.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/server/templates/player.html b/bot/server/templates/player.html index 9371a26..c741272 100644 --- a/bot/server/templates/player.html +++ b/bot/server/templates/player.html @@ -138,7 +138,7 @@ if (navigator.share) { navigator.share({ title: "Play", - url: window.location.href + url: mediaLink }); } };