Skip to content

Commit

Permalink
docs(clipboard): update read example removing options (#2564)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Mar 12, 2020
1 parent 4a1a7b8 commit 49e9f8d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions site/docs-md/apis/clipboard/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@ Clipboard.write({
string: "Hello, Moto"
});

let str = await Clipboard.read({
type: "string"
});
console.log('Got string from clipboard:', str.value);
let result = await Clipboard.read();
console.log('Got', result.type, 'from clipboard:', result.value);
```

## API
Expand Down

0 comments on commit 49e9f8d

Please sign in to comment.