]> git.wh0rd.org - chrome-ext/music-player-client.git/commitdiff
update with full state now
authorMike Frysinger <vapier@gentoo.org>
Sun, 1 Sep 2013 08:25:04 +0000 (04:25 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 1 Sep 2013 08:25:04 +0000 (04:25 -0400)
Since mpc will pass us a fully merged state object, use that rather than
returning early assuming we have just a partial state.

main.js

diff --git a/main.js b/main.js
index 1de6b6a4c18e8f254be18dbcc6acb6971c9220ef..d107abba5a021cd2d5de282e7dd09999816acfad 100644 (file)
--- a/main.js
+++ b/main.js
@@ -238,7 +238,6 @@ function update_ui(state, cmd) {
        if ('file' in state) {
                // Hack: should be a real object.
                ui_mpc_metadata.innerText = state['file'];
-               return;
        }
 
        var time;