electron/atom/common/api/lib/clipboard.coffee
2015-11-12 20:29:30 +08:00

6 lines
260 B
CoffeeScript

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