Convert all source files to JavaScript
This commit is contained in:
parent
403870a27e
commit
1f9691ae13
144 changed files with 11211 additions and 7301 deletions
7
atom/common/api/lib/clipboard.js
Normal file
7
atom/common/api/lib/clipboard.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
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