mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 05:59:45 -05:00
[web-src] Add helper function to append max size to artwork url
This commit is contained in:
@@ -107,10 +107,7 @@ export default {
|
||||
},
|
||||
|
||||
artwork_url: function () {
|
||||
if (this.now_playing.artwork_url && this.now_playing.artwork_url.startsWith('/')) {
|
||||
return this.now_playing.artwork_url + '?maxwidth=600&maxheight=600'
|
||||
}
|
||||
return this.now_playing.artwork_url
|
||||
return webapi.artwork_url_append_size_params(this.now_playing.artwork_url)
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user