Skip to content

Commit

Permalink
fix(player): Cancel background playback again
Browse files Browse the repository at this point in the history
...because the next YouTube track still won't start until the Openwhyd tab is focused by the user, both on Brave and Firefox.
related to #132.
  • Loading branch information
adrienjoly committed Nov 16, 2020
1 parent 967626f commit 758e998
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions public/js/whydPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,10 +758,4 @@ function WhydPlayer() {
window.whydPlayer.playAll();

console.log('Playem is ready!');

try {
document.hasFocus = () => true; // cf https://github.com/openwhyd/openwhyd/issues/132#issuecomment-414131182
} catch (err) {
console.warn('failed to enable background playback:', err);
}
})();

0 comments on commit 758e998

Please sign in to comment.