mirror of
https://github.com/koel/koel
synced 2024-11-10 22:54:16 +00:00
Standardize useLastfm reference
This commit is contained in:
parent
18b2071f9e
commit
bec05931b3
2 changed files with 1 additions and 3 deletions
|
@ -53,8 +53,6 @@ export default {
|
|||
queueStore.init();
|
||||
settingStore.init(this.state.settings);
|
||||
|
||||
window.useLastfm = this.state.useLastfm = data.useLastfm;
|
||||
|
||||
successCb && successCb();
|
||||
}, errorCb);
|
||||
},
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue