From 94d0ea1cc867248dadd795ae3c677e5cb8d404d7 Mon Sep 17 00:00:00 2001 From: Adrien Date: Wed, 16 Aug 2023 22:38:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Make=20all=20the=20ChatsWindow?= =?UTF-8?q?=20main=20div=20usable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 4a62dc5..b25b9a4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,24 @@ fn App(cx: Scope) -> Element { let chats_window = dioxus_desktop::use_window(cx); let chats_dom = VirtualDom::new(ChatsWindow); - chats_window.new_window(chats_dom, Default::default()); + let window_cfg = Config::default().with_custom_head( + r#" + +"# + .to_owned(), + ); + chats_window.new_window(chats_dom, window_cfg); cx.render(rsx! { MainWindow {}