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

Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
trop[bot]
2021-11-01 13:45:48 -04:00
committed by GitHub
parent 9fba8b35cb
commit bcf04f5878
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'
```