fix(media): add local filesystem fallback and fix gallery lightbox matching

- Add localfs storage provider as fallback when containerfs is unreachable
- Wrap media service with fallback provider in both entry points
- Fix gallery lightbox src matching by comparing pathnames only
This commit is contained in:
Acbox
2026-04-03 00:01:49 +08:00
parent fc2b603018
commit 5aeb2fd3fc
5 changed files with 181 additions and 5 deletions
@@ -58,7 +58,7 @@ function normalizeSrc(src: string): string {
if (!src || src.startsWith('data:')) return src
try {
const u = new URL(src, window.location.origin)
return u.pathname + u.search
return u.pathname
} catch {
return src
}