mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Remove unnecessary check
This commit is contained in:
parent
6bea97ef0f
commit
02c820de5b
@ -97,11 +97,8 @@ define(['playbackManager', 'nowPlayingHelper', 'events', 'connectionManager'], f
|
||||
}
|
||||
|
||||
function updatePlayerState(player, state, eventName) {
|
||||
var now = new Date().getTime();
|
||||
lastUpdateTime = now;
|
||||
|
||||
// Don't go crazy reporting position changes
|
||||
if (eventName == 'timeupdate' && (now - lastUpdateTime) < 5000) {
|
||||
if (eventName == 'timeupdate') {
|
||||
// Only report if this item hasn't been reported yet, or if there's an actual playback change.
|
||||
// Don't report on simple time updates
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user