linux: it is now safe to use clipboard in renderer process
This commit is contained in:
parent
b5bc8c9811
commit
b54e786b09
1 changed files with 9 additions and 14 deletions
|
@ -1,9 +1,4 @@
|
|||
if process.platform is 'linux' and process.type is 'renderer'
|
||||
# On Linux we could not access clipboard in renderer process.
|
||||
module.exports = require('remote').require 'clipboard'
|
||||
else
|
||||
binding = process.atomBinding 'clipboard'
|
||||
|
||||
module.exports =
|
||||
has: (format, type='standard') -> binding._has format, type
|
||||
read: (format, type='standard') -> binding._read format, type
|
||||
|
|
Loading…
Add table
Reference in a new issue