chore: have 'use strict' consistently across our lib files (#14721)
This commit is contained in:
parent
0a621bfea1
commit
176a76217c
57 changed files with 120 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
if (process.platform === 'linux' && process.type === 'renderer') {
|
||||
// On Linux we could not access clipboard in renderer process.
|
||||
module.exports = require('electron').remote.clipboard
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
const moduleList = require('@electron/internal/common/api/module-list')
|
||||
|
||||
exports.memoizedGetter = (getter) => {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict'
|
||||
|
||||
// Common modules, please sort alphabetically
|
||||
module.exports = [
|
||||
{ name: 'clipboard', file: 'clipboard' },
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
'use strict'
|
||||
|
||||
module.exports = process.atomBinding('native_image')
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
'use strict'
|
||||
|
||||
module.exports = process.atomBinding('shell')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue