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

8 lines
257 B
JavaScript
Raw Normal View History

2016-01-12 02:40:23 +00:00
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');
}