Commit a311ca5
committed
fix: handle Result return type from watch_position in use_geolocation
The watch_position_with_error_callback_and_options method now returns
Result<i32, JsValue> instead of i32 in wasm-bindgen 0.2.113. Use .ok()
to convert it to Option<i32>.1 parent d8ac876 commit a311ca5
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments