Decoding/encoding URIs
This commit is contained in:
@ -185,7 +185,7 @@ export function getPlaylist( uri ){
|
||||
export function getDirectory( uri ){
|
||||
return {
|
||||
type: 'MOPIDY_GET_DIRECTORY',
|
||||
data: { uri: (uri ? decodeURIComponent(uri) : null) }
|
||||
data: { uri: uri }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -42,7 +42,7 @@ class LibraryBrowse extends React.Component{
|
||||
if (props.mopidy_connected){
|
||||
var uri = null
|
||||
if (typeof(props.params.uri) !== 'undefined'){
|
||||
uri = props.params.uri.replace('|','?')
|
||||
uri = decodeURIComponent(props.params.uri)
|
||||
}
|
||||
this.props.mopidyActions.getDirectory(uri)
|
||||
}
|
||||
@ -72,9 +72,6 @@ class LibraryBrowse extends React.Component{
|
||||
}
|
||||
}
|
||||
|
||||
render(){
|
||||
}
|
||||
|
||||
render(){
|
||||
if (typeof(this.props.params.uri) !== 'undefined' && this.props.params.uri){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user