Skip to content

Commit

Permalink
update cache line on window resize
Browse files Browse the repository at this point in the history
  • Loading branch information
izderadicka committed Feb 16, 2021
1 parent 7c2c9fb commit 788759c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,12 @@ export class AudioPlayer {
return false;

}
})
});

window.addEventListener("resize", () => {
debug("window resized");
this._updateCacheIndicator();
});
}

initPlayer() {
Expand Down

0 comments on commit 788759c

Please sign in to comment.