We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd2f94 commit f4e2feaCopy full SHA for f4e2fea
src/use_geolocation.rs
@@ -102,8 +102,8 @@ pub fn use_geolocation_with_options(
102
let on_error =
103
Closure::wrap(Box::new(on_error) as Box<dyn Fn(web_sys::PositionError)>);
104
105
- *watch_handle.lock().unwrap() = Some(geolocation
106
- .watch_position_with_error_callback_and_options(
+ *watch_handle.lock().unwrap() =
+ Some(geolocation.watch_position_with_error_callback_and_options(
107
update_position.as_ref().unchecked_ref(),
108
Some(on_error.as_ref().unchecked_ref()),
109
&position_options,
0 commit comments