Latest auth tools; Non-array catching

This commit is contained in:
James Barnsley
2017-11-14 20:57:02 +13:00
parent 4c6458aafc
commit 87eace3ce0
3 changed files with 36 additions and 33 deletions

View File

@ -111,7 +111,7 @@ export let digestMopidyImages = function(mopidy, images){
images[i].url = url
// Replace local images to point directly to our Mopidy server
if (url.startsWith('/images/')){
if (url && url.startsWith('/images/')){
url = '//'+mopidy.host+':'+mopidy.port+url
}