Fix default launcher for web targets (#2431)

This commit is contained in:
Sam Tay authored and GitHub committed 2024-05-20 06:55:12 -05:00
1 parent e69c69abd7
commit e51d0d6983
1 file changed
+1 -1
+1 -1
View File
@@ -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")]