Standardize useLastfm reference

This commit is contained in:
An Phan 2016-06-05 12:13:56 +08:00
parent 18b2071f9e
commit bec05931b3
2 changed files with 1 additions and 3 deletions

View file

@ -53,8 +53,6 @@ export default {
queueStore.init();
settingStore.init(this.state.settings);
window.useLastfm = this.state.useLastfm = data.useLastfm;
successCb && successCb();
}, errorCb);
},

View file

@ -245,7 +245,7 @@ export default {
* @param {?Function} cb
*/
scrobble(song, cb = null) {
if (!window.useLastfm || !userStore.current.preferences.lastfm_session_key) {
if (!sharedStore.state.useLastfm || !userStore.current.preferences.lastfm_session_key) {
return;
}