mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: have 'use strict' consistently across our lib files (#14721)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user