docs(opener): add basic usage guide to readme (#2167)

* docs(opener): add basic usage guide to readme

* Add missing `Ok(())` and `?`

* Register plugin first
This commit is contained in:
Tony
2024-12-09 18:18:12 +08:00
committed by GitHub
parent 5b8efde906
commit f7ad349ed2
3 changed files with 37 additions and 1 deletions
+1
View File
@@ -128,6 +128,7 @@ fn main() {
// Note that values must be serde_json::Value instances,
// otherwise, they will not be compatible with the JavaScript bindings.
store.set("a".to_string(), json!("b"));
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tauri application");