mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: add prefer-const to .eslintrc + fix errors (#14880)
This commit is contained in:
committed by
Samuel Attard
parent
07161a8452
commit
3ad3ade828
2
spec/fixtures/api/mixed-sandbox-app/main.js
vendored
2
spec/fixtures/api/mixed-sandbox-app/main.js
vendored
@@ -15,7 +15,7 @@ let currentWindowSandboxed = false
|
||||
app.once('ready', () => {
|
||||
function testWindow (isSandboxed, callback) {
|
||||
currentWindowSandboxed = isSandboxed
|
||||
let currentWindow = new BrowserWindow({
|
||||
const currentWindow = new BrowserWindow({
|
||||
show: false,
|
||||
webPreferences: {
|
||||
preload: path.join(__dirname, 'electron-app-mixed-sandbox-preload.js'),
|
||||
|
||||
2
spec/fixtures/api/relaunch/main.js
vendored
2
spec/fixtures/api/relaunch/main.js
vendored
@@ -8,7 +8,7 @@ process.on('uncaughtException', () => {
|
||||
})
|
||||
|
||||
app.once('ready', () => {
|
||||
let lastArg = process.argv[process.argv.length - 1]
|
||||
const lastArg = process.argv[process.argv.length - 1]
|
||||
const client = net.connect(socketPath)
|
||||
client.once('connect', () => {
|
||||
client.end(String(lastArg === '--second'))
|
||||
|
||||
2
spec/fixtures/workers/shared_worker_node.js
vendored
2
spec/fixtures/workers/shared_worker_node.js
vendored
@@ -1,5 +1,5 @@
|
||||
self.onconnect = function (event) {
|
||||
let port = event.ports[0]
|
||||
const port = event.ports[0]
|
||||
port.start()
|
||||
port.postMessage([typeof process, typeof setImmediate, typeof global, typeof Buffer].join(' '))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user