Update README.md

prettier changes
pull/2044/head
Jérôme Bousquié 8 months ago committed by GitHub
parent d05ba1f179
commit 879813032f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -91,8 +91,12 @@ fn main() {
.expect("error while running tauri application");
}
```
Then, for instance, grant the plugin the permission to check or request permissions from the user and to read the device position in the file `src-tauri/capabilities/default.json`
```
Then, for instance, grant the plugin the permission to check or request permissions from the user and to read the device position
`src-tauri/capabilities/default.json`
```json
"permissions": [
"core:default",
"geolocation:allow-check-permissions",
@ -101,6 +105,7 @@ Then, for instance, grant the plugin the permission to check or request permissi
"geolocation:allow-watch-position",
]
```
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
```javascript

Loading…
Cancel
Save