Skip to content

Commit

Permalink
Fix mistake in v2 examples
Browse files Browse the repository at this point in the history
closes #100
  • Loading branch information
oscartbeaumont authored Jun 4, 2024
1 parent 1ad0a71 commit 10e32da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ fn main() {
.invoke_handler(invoke_handler)
+ .setup(|app| {
+ register_events(app);
+ Ok(())
+ })
.run(tauri::generate_context!())
.expect("error while running tauri application");
Expand Down Expand Up @@ -214,4 +215,4 @@ It's very common that your are using a linting or formatting tool on your codeba
let builder = ts::builder()
// < your commands and events are probally here
.header("// @ts-nocheck");
```
```

0 comments on commit 10e32da

Please sign in to comment.