소스 검색

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")]