diff options
| author | Émilien Devos <contact@emiliendevos.be> | 2022-07-25 12:38:17 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-25 12:38:17 +0000 |
| commit | 210c2a88550c6b8a11e22a7a718b7cf078cfe606 (patch) | |
| tree | cb049fe634e35d41c5713166e5f203161417ad6a /assets/js | |
| parent | 5e090778aef347e20e118e54073b5b6eb5035ebd (diff) | |
| download | invidious-210c2a88550c6b8a11e22a7a718b7cf078cfe606.tar.gz invidious-210c2a88550c6b8a11e22a7a718b7cf078cfe606.tar.bz2 invidious-210c2a88550c6b8a11e22a7a718b7cf078cfe606.zip | |
Fix updated sources not returned inside map func
This fix the issue reported in https://github.com/iv-org/invidious/issues/2055#issuecomment-1192894698
Diffstat (limited to 'assets/js')
| -rw-r--r-- | assets/js/player.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/assets/js/player.js b/assets/js/player.js index 287b7ea1..b75e7134 100644 --- a/assets/js/player.js +++ b/assets/js/player.js @@ -68,6 +68,7 @@ player.on('error', function () { // add local=true to all current sources player.src(player.currentSources().map(function (source) { source.src += '&local=true'; + return source; })); } else if (reloadMakesSense) { setTimeout(function () { |
