Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Fix playback time for online radio
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Avdeev committed Sep 17, 2018
1 parent a211b0b commit f8f95fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/app_music/javascripts/app_music.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ class app_music {
_this.status.time = json.data.time;
if(_this.status.time < 0) {
_this.status.time = 0;
} else if(_this.status.time > _this.status.length) {
} else if((_this.status.time > _this.status.length) && (_this.status.length > 0)) {
_this.status.time = _this.status.length;
}
_this.status.state = json.data.state;
Expand Down

0 comments on commit f8f95fa

Please sign in to comment.