Fix default launcher for web targets (#2431)
This commit is contained in:
1 parent
e69c69abd7
commit
e51d0d6983
1 file changed
+1
-1
@@ -284,7 +284,7 @@ pub fn launch(app: fn() -> Element) {
|
|||||||
#[cfg_attr(docsrs, doc(cfg(feature = "web")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "web")))]
|
||||||
/// Launch your web application without any additional configuration. See [`LaunchBuilder`] for more options.
|
/// Launch your web application without any additional configuration. See [`LaunchBuilder`] for more options.
|
||||||
pub fn launch_web(app: fn() -> Element) {
|
pub fn launch_web(app: fn() -> Element) {
|
||||||
LaunchBuilder::new().launch(app)
|
LaunchBuilder::web().launch(app)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "desktop")]
|
#[cfg(feature = "desktop")]
|
||||||
|
|||||||
Reference in new issue
Block a user