Skip to content

Commit

Permalink
update invoke import
Browse files Browse the repository at this point in the history
  • Loading branch information
vasfvitor committed Oct 23, 2023
1 parent e44e3fb commit 3d1de2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/features/clipboard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async fn write(content: String, app: tauri::AppHandle) {
3. Call it from your frontend

```js
import { invoke } from '@tauri-apps/api/tauri';
import { invoke } from "@tauri-apps/api/primitives";

// When called, the backend write function will write "Tauri is awesome" to the clipboard
await invoke('write', { content: 'Tauri is awesome' });
Expand Down Expand Up @@ -171,7 +171,7 @@ async fn read(app: tauri::AppHandle) {
3. Call it from your frontend

```js
import { invoke } from '@tauri-apps/api/tauri';
import { invoke } from "@tauri-apps/api/primitives";

await invoke('read');
```
Expand Down

0 comments on commit 3d1de2b

Please sign in to comment.