Skip to content

Commit

Permalink
Fix default launcher for web targets (#2431)
Browse files Browse the repository at this point in the history
  • Loading branch information
samtay authored May 20, 2024
1 parent e69c69a commit e51d0d6
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 e51d0d6

Please sign in to comment.