electron/atom/common/api/lib/clipboard.coffee
2016-01-12 16:22:34 -08:00

5 lines
244 B
CoffeeScript

if process.platform is 'linux' and process.type is 'renderer'
### On Linux we could not access clipboard in renderer process. ###
module.exports = require('electron').remote.clipboard
else
module.exports = process.atomBinding 'clipboard'