diff --git a/app.js b/app.js index 8e48b5c..3709016 100644 --- a/app.js +++ b/app.js @@ -515,8 +515,10 @@ async function editPlCoverSelected(input){ if(!res.ok)throw new Error(res.status); toast('Cover aktualisiert'); setTimeout(()=>{ - const cv=document.getElementById('playlist-cover'); - const img=cv?.querySelector('img');if(img)img.src=img.src.split('?')[0]+'?t='+Date.now(); + const bust=coverUrl(_currentPlaylist.coverArt,300)+'&_cb='+Date.now(); + const detailImg=document.getElementById('playlist-cover'); + if(detailImg)detailImg.innerHTML=``; + document.getElementById('edit-pl-cover').innerHTML=``; },800); }catch(e){ _ndToken=null; diff --git a/sw.js b/sw.js index 95d3357..1c99d91 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -const CACHE = 'ns-v36'; +const CACHE = 'ns-v37'; const PRECACHE = ['/', 'index.html', 'styles.css', 'app.js', 'manifest.json', 'icon.svg']; const SKIP_PATHS = ['/rest/stream', '/rest/download', '/config.js'];