From 2e5829a7a07049fb5817dde88dd2d2846aaa8be2 Mon Sep 17 00:00:00 2001 From: euzu Date: Sun, 17 Aug 2025 14:32:44 +0200 Subject: [PATCH] Content-Security-Policy optional --- frontend/src/app/components/playlist/playlist_explorer.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/playlist/playlist_explorer.rs b/frontend/src/app/components/playlist/playlist_explorer.rs index 2a6400aaf..ebba99b88 100644 --- a/frontend/src/app/components/playlist/playlist_explorer.rs +++ b/frontend/src/app/components/playlist/playlist_explorer.rs @@ -241,8 +241,9 @@ pub fn PlaylistExplorer() -> Html { html! { {"n/a"}().unwrap(); - img.set_src("assets/missing-logo.svg"); + if let Ok(img) = target.dyn_into::() { + img.set_src("assets/missing-logo.svg"); + } } })} />}