fix: clipboard.read() to recognize custom types (#31623)
This commit is contained in:
parent
a938af3f54
commit
5899a72df9
3 changed files with 25 additions and 17 deletions
|
@ -197,7 +197,7 @@ Returns `Boolean` - Whether the clipboard supports the specified `format`.
|
|||
```js
|
||||
const { clipboard } = require('electron')
|
||||
|
||||
const hasFormat = clipboard.has('<p>selection</p>')
|
||||
const hasFormat = clipboard.has('public/utf8-plain-text')
|
||||
console.log(hasFormat)
|
||||
// 'true' or 'false'
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue