electron/lib/common/api/clipboard.js
2016-03-08 11:14:21 -08:00

6 lines
253 B
JavaScript

if (process.platform === 'linux' && process.type === 'renderer') {
// On Linux we could not access clipboard in renderer process.
module.exports = require('electron').remote.clipboard;
} else {
module.exports = process.atomBinding('clipboard');
}