mirror of
https://github.com/electron/electron.git
synced 2026-01-28 08:48:14 -05:00
refactor: replace var with const / let (#14866)
This commit is contained in:
committed by
Samuel Attard
parent
b42493e6e6
commit
c61db523c7
@@ -1,8 +1,8 @@
|
||||
var fs = require('fs')
|
||||
var https = require('https')
|
||||
var path = require('path')
|
||||
const fs = require('fs')
|
||||
const https = require('https')
|
||||
const path = require('path')
|
||||
|
||||
var server = https.createServer({
|
||||
const server = https.createServer({
|
||||
key: fs.readFileSync(path.resolve(__dirname, 'tls.key.pem')),
|
||||
cert: fs.readFileSync(path.resolve(__dirname, 'tls.cert.pem'))
|
||||
}, (req, res) => {
|
||||
|
||||
@@ -4,7 +4,7 @@ const utils = require('./lib/utils')
|
||||
|
||||
const electronPath = utils.getAbsoluteElectronExec()
|
||||
|
||||
var child = cp.spawn(electronPath, process.argv.slice(2), { stdio: 'inherit' })
|
||||
const child = cp.spawn(electronPath, process.argv.slice(2), { stdio: 'inherit' })
|
||||
child.on('close', (code) => process.exit(code))
|
||||
|
||||
const handleTerminationSignal = (signal) =>
|
||||
|
||||
Reference in New Issue
Block a user