mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user