Move JavaScript to root lib/ folder
This commit is contained in:
parent
a9c40de393
commit
70aa9b06ee
56 changed files with 0 additions and 0 deletions
6
lib/common/api/clipboard.js
Normal file
6
lib/common/api/clipboard.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
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');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue