mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 05:08:00 +02:00
fix: uamp failing when input is null
+ update deps
This commit is contained in:
parent
94011d1b8a
commit
fd246644c1
3 changed files with 725 additions and 715 deletions
|
@ -23,7 +23,7 @@ export const useData = defineStore('data', () => {
|
|||
async function getSong(e) {
|
||||
const hash = new URLSearchParams(e.substring(e.indexOf('?'))).get('v'),
|
||||
json = await getJsonPiped('/streams/' + hash),
|
||||
unamp = txt => txt.replace(AMP, '&');
|
||||
unamp = txt => txt?.replace(AMP, '&');
|
||||
|
||||
state.art = unamp(json.thumbnailUrl);
|
||||
state.description = json.description;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue