Skip to content

Commit

Permalink
Fixed standard issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Nov 9, 2018
1 parent 4c62c48 commit 024e866
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const {app} = require('electron')
const { app } = require('electron')
const chokidar = require('chokidar')
const fs = require('fs')
const {spawn} = require('child_process')
const { spawn } = require('child_process')
const path = require('path')

// Main file poses a special case, as its changes are
Expand All @@ -22,7 +22,7 @@ const createHardresetHandler = (eXecutable, hardResetMethod, argv) =>
() => {
// Detaching child is useful when in Windows to let child
// live after the parent is killed
let args = (argv || []).concat([appPath]);
let args = (argv || []).concat([appPath])
let child = spawn(eXecutable, args, {
detached: true,
stdio: 'inherit'
Expand All @@ -49,7 +49,7 @@ const createHardresetHandler = (eXecutable, hardResetMethod, argv) =>
const createWatcher = (glob, options = {}) => {
// Watch everything but the node_modules folder and main file
// main file changes are only effective if hard reset is possible
let opts = Object.assign({ignored: ignoredPaths}, options)
let opts = Object.assign({ ignored: ignoredPaths }, options)
return chokidar.watch(glob, opts)
}

Expand Down

0 comments on commit 024e866

Please sign in to comment.