]> git.wh0rd.org - chrome-ext/music-player-client.git/blobdiff - js/mpc.js
only refresh metadata/playlist tabs when the underlying data has changed
[chrome-ext/music-player-client.git] / js / mpc.js
index 1e3390b27b7d21100dfe22d95837c9c508323efe..84eea050a9970ff47ff69ae6e3867dad378f2bef 100644 (file)
--- a/js/mpc.js
+++ b/js/mpc.js
@@ -78,11 +78,13 @@ Mpc.prototype.recv_msg = function(lines) {
                                ++i;
                }
                this.state.Playlist = playlist;
+               this.state.Playlist.lastUpdate = (new Date()).getTime();
                this._cb_update_state(this.state);
                break;
 
        case 'currentsong':
                this.state.Currentsong = this._parse_result(lines).state;
+               this.state.Currentsong.lastUpdate = (new Date()).getTime();
                this._cb_update_state(this.state);
                break;