fix: Last.fm scrobbling and LocalLibrary cover art
- Restore Last.fm session on app startup (not just when visiting Settings) - Fix LocalLibrary artwork: use asset://localhost/ instead of file:// - Add fs:allow-read capability for asset protocol - Enable assetProtocol in tauri.conf.json
This commit is contained in:
1 parent
2bf9856179
commit
762df3e122
9 files changed
+43
-3
No files matched your search
@@ -401,7 +401,8 @@
|
||||
|
||||
function getArtworkUrl(path?: string): string {
|
||||
if (!path) return '';
|
||||
return `file://${path}`;
|
||||
// Use asset:// protocol for Tauri 2.0 to load local files in WebView
|
||||
return `asset://localhost/${encodeURIComponent(path)}`;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user