瀏覽代碼

Fix default launcher for web targets (#2431)

Sam Tay 1 年之前
父節點
當前提交
e51d0d6983
共有 1 個文件被更改,包括 1 次插入1 次删除
  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")]