Skip to content

Commit

Permalink
Repair the documentation for plugin initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 committed Jun 19, 2024
1 parent 86d227e commit ad138aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A plugin of In App Purchase for Tauri on MacOS.

```yaml
[target.'cfg(target_os = "macos")'.dependencies]
tauri-plugin-iap = { git = "https://github.com/wtto00/tauri-plugin-iap" }
tauri-plugin-iap = { git = "https://github.com/wtto00/tauri-plugin-iap", tag = "v0.0.1" }
```

- Add dependencies of front-end:
Expand All @@ -27,7 +27,7 @@ A plugin of In App Purchase for Tauri on MacOS.
.setup(move |app| {
// Add this line
#[cfg(target_os="macos")]
app.app_handle().plugin(plugins::refister_iap())?;
app.app_handle().plugin(tauri_plugin_iap::init())?;

Ok(())
})
Expand Down

0 comments on commit ad138aa

Please sign in to comment.