Explorar o código

Use string es6 interpolation

Eduardo San Martin Morote %!s(int64=9) %!d(string=hai) anos
pai
achega
46d7d193cf
Modificáronse 1 ficheiros con 1 adicións e 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()