electron/lib/common/api/clipboard.js

7 lines
253 B
JavaScript
Raw Normal View History

2016-01-12 02:40:23 +00:00
if (process.platform === 'linux' && process.type === 'renderer') {
2016-01-14 18:35:29 +00:00
// On Linux we could not access clipboard in renderer process.
2016-01-12 02:40:23 +00:00
module.exports = require('electron').remote.clipboard;
} else {
module.exports = process.atomBinding('clipboard');
}