Removing global variable, making everything base slash

This commit is contained in:
James Barnsley
2019-01-22 16:57:43 +13:00
parent 34ab2d94cf
commit 4d7f81b685
30 changed files with 1713 additions and 938 deletions

View File

@ -1672,7 +1672,7 @@ const MopidyMiddleware = (function(){
key: action.key,
new_key: response.uri
});
this.props.history.push(global.baseURL+'playlist/'+encodeURIComponent(response.uri));
this.props.history.push('/playlist/'+encodeURIComponent(response.uri));
}
store.dispatch(uiActions.createNotification({type: 'info', content: 'Playlist saved'}));

View File

@ -1510,9 +1510,9 @@ export function getPlaylist(uri){
var description = null
if (response.description){
description = response.description
description = description.split('<a href="spotify:artist:').join('<a href="#'+global.baseURL+'artist/spotify:artist:')
description = description.split('<a href="spotify:album:').join('<a href="#'+global.baseURL+'album/spotify:album:')
description = description.split('<a href="spotify:user:').join('<a href="#'+global.baseURL+'user/spotify:user:')
description = description.split('<a href="spotify:artist:').join('<a href="#'+'/artist/spotify:artist:')
description = description.split('<a href="spotify:album:').join('<a href="#'+'/album/spotify:album:')
description = description.split('<a href="spotify:user:').join('<a href="#'+'/user/spotify:user:')
}
var tracks = helpers.formatTracks(response.tracks.items);