diff --git a/index.html b/index.html index 30a9121..01c09e7 100644 --- a/index.html +++ b/index.html @@ -361,7 +361,7 @@
-

TuneHub

+

Meishi Music

@@ -1077,6 +1077,15 @@ return () => audio.removeEventListener('loadedmetadata', onLoadedMetadata); }, []); + const handleClearCache = () => { + localStorage.removeItem('th_playlist'); + localStorage.removeItem('th_current'); + localStorage.removeItem('th_favorites'); + localStorage.removeItem('th_quality'); + localStorage.removeItem('th_sync_token'); + window.location.reload(); + }; + // --- Render --- return ( @@ -1089,6 +1098,9 @@ quality={quality} setQuality={setQuality} onClearCache={handleClearCache} + syncToken={syncToken} + setSyncToken={setSyncToken} + onSyncNow={handleSync} /> {/* Top Navigation / Search Bar */} @@ -1244,8 +1256,8 @@