electron/atom/common/api/lib/clipboard.coffee

6 lines
239 B
CoffeeScript
Raw Normal View History

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
module.exports = process.atomBinding 'clipboard'