Simplified localstorage handler; Duration formatter

This commit is contained in:
James Barnsley
2016-10-18 16:53:33 +13:00
parent 82b13707f9
commit bd3ac79055
9 changed files with 70 additions and 19 deletions

View File

@ -128,11 +128,6 @@ const MopidyMiddleware = (function(){
instruct( socket, store, action.call, action.value )
break;
case 'MOPIDY_SET_CONFIG':
next(action);
localStorage.setItem('mopidy', JSON.stringify({ host: action.host, port: action.port }));
break;
// This action is irrelevant to us, pass it on to the next middleware
default:
return next(action);