Explorar el Código

Merge pull request #52 from posva/es6-patch

Use string es6 interpolation
Jessica Lord hace 9 años
padre
commit
3550153dcb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -13,7 +13,7 @@ function createWindow () {
   mainWindow = new BrowserWindow({width: 800, height: 600})
 
   // and load the index.html of the app.
-  mainWindow.loadURL('file://' + __dirname + '/index.html')
+  mainWindow.loadURL(`file://${__dirname}/index.html`)
 
   // Open the DevTools.
   mainWindow.webContents.openDevTools()