mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fix: clipboard.read() to recognize custom types (#31623)
This commit is contained in:
committed by
GitHub
parent
a938af3f54
commit
5899a72df9
@@ -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'
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user