mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-07 00:12:16 +02:00
Content-Security-Policy optional
This commit is contained in:
@@ -241,8 +241,9 @@ pub fn PlaylistExplorer() -> Html {
|
||||
html! { <img alt={"n/a"} src={logo.to_owned()}
|
||||
onerror={Callback::from(move |e: web_sys::Event| {
|
||||
if let Some(target) = e.target() {
|
||||
let img = target.dyn_into::<web_sys::HtmlMediaElement >().unwrap();
|
||||
img.set_src("assets/missing-logo.svg");
|
||||
if let Ok(img) = target.dyn_into::<web_sys::HtmlMediaElement>() {
|
||||
img.set_src("assets/missing-logo.svg");
|
||||
}
|
||||
}
|
||||
})}
|
||||
/>}
|
||||
|
||||
Reference in New Issue
Block a user