浏览代码

Use string es6 interpolation

Eduardo San Martin Morote 9 年之前
父节点
当前提交
46d7d193cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  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()