Skip to content

Commit

Permalink
Fix default launcher for web targets (DioxusLabs#2431)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtay authored and ASR-ASU committed May 21, 2024
1 parent 46d55f8 commit 94757bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dioxus/src/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 94757bc

Please sign in to comment.