electron/atom/common/api/lib/clipboard.js
2016-01-12 16:24:06 -08:00

7 lines
257 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');
}