Dr.Caduceus commited on
Commit
ae40ae9
·
unverified ·
1 Parent(s): e2728de

Improve: Use download link with share button instead of current window's URL.

Browse files

Using download link instead of current window's URL make it possible to start playing the current media in external player.

Files changed (1) hide show
  1. bot/server/templates/player.html +1 -1
bot/server/templates/player.html CHANGED
@@ -138,7 +138,7 @@
138
  if (navigator.share) {
139
  navigator.share({
140
  title: "Play",
141
- url: window.location.href
142
  });
143
  }
144
  };
 
138
  if (navigator.share) {
139
  navigator.share({
140
  title: "Play",
141
+ url: mediaLink
142
  });
143
  }
144
  };