Przeglądaj źródła

Fix default launcher for web targets (#2431)

Sam Tay 1 rok temu
rodzic
commit
e51d0d6983
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/dioxus/src/launch.rs

+ 1 - 1
packages/dioxus/src/launch.rs

@@ -284,7 +284,7 @@ pub fn launch(app: fn() -> Element) {
 #[cfg_attr(docsrs, doc(cfg(feature = "web")))]
 /// Launch your web application without any additional configuration. See [`LaunchBuilder`] for more options.
 pub fn launch_web(app: fn() -> Element) {
-    LaunchBuilder::new().launch(app)
+    LaunchBuilder::web().launch(app)
 }
 
 #[cfg(feature = "desktop")]