Adding and updating Servers, fixes #524

This commit is contained in:
James Barnsley
2020-04-28 21:24:17 +12:00
parent 92292b18d7
commit 0caa780e38
17 changed files with 454 additions and 258 deletions

View File

@ -63,6 +63,15 @@ const localstorageMiddleware = (function () {
);
break;
case 'MOPIDY_UPDATE_SERVERS':
storage.set(
'mopidy',
{
servers: action.servers,
},
);
break;
case 'SPOTIFY_AUTHORIZATION_GRANTED':
if (action.authorization !== undefined) {
var { authorization } = action;