fix: clipboard.read() to recognize custom types (#31623)

This commit is contained in:
John Kleinschmidt 2021-11-01 10:00:36 -04:00 committed by GitHub
parent a938af3f54
commit 5899a72df9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 17 deletions

View file

@ -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'
```