Emoji api now uses URL object to construct url path

This commit is contained in:
2019-07-06 19:37:44 +02:00
parent 11e4f02bf8
commit 67d3af0ed0

View File

@@ -196,9 +196,9 @@ const plexAuthenticate = (username, password) => {
// - - - Random emoji - - -
const getEmoji = () => {
const url = path.join(SEASONED_URL, 'v1/emoji')
const url = new URL('v1/emoji', SEASONED_URL)
return axios.get(url)
return axios.get(url.href)
.catch(error => { console.log('api error getting emoji'); throw error })
}