File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ function createWindow() {
2828 mainWindow = new BrowserWindow ( {
2929 width : 1024 ,
3030 height : 768 ,
31- show : false
31+ show : false ,
32+ webPreferences : {
33+ nodeIntegration : true
34+ }
3235 } )
3336
3437 // and load the index.html of the app.
Original file line number Diff line number Diff line change 4343 "postpackage" : " electron-packager ./ --out=./builds"
4444 },
4545 "dependencies" : {
46- "electron" : " ^4.1.4 " ,
46+ "electron" : " ^5.0.2 " ,
4747 "react" : " ^16.8.6" ,
4848 "react-dom" : " ^16.8.6"
4949 },
Original file line number Diff line number Diff line change @@ -2179,10 +2179,10 @@ electron-to-chromium@^1.3.30:
21792179 resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.45.tgz#458ac1b1c5c760ce8811a16d2bfbd97ec30bafb8"
21802180 integrity sha1-RYrBscXHYM6IEaFtK/vZfsMLr7g=
21812181
2182- electron@^4.1.4 :
2183- version "4.2.3 "
2184- resolved "https://registry.yarnpkg.com/electron/-/electron-4.2.3. tgz#5d45da9dd5ae97269dbee2623840da808c72d29d "
2185- integrity sha512-nx+jHxj2eNhaYHXFGdzr7zgSphpVHEU9WAu6qqEUsQ936X3c6bQ5Bdg08KbHZj+cyRRQ06JMu6/ILh5pWrDZaA ==
2182+ electron@^5.0.2 :
2183+ version "5.0.2 "
2184+ resolved "https://registry.yarnpkg.com/electron/-/electron-5.0.2. tgz#0f6b38ae7e344b94f433d9171e50568f56962fc7 "
2185+ integrity sha512-bUHKQhyuOen/q8iHTkrnzqB9CAwBDI+vHbeu21kpq2bqAD+t25yfrmUEcYHaPL4fZOAhk6nnRqskF6/Xd+aZxg ==
21862186 dependencies :
21872187 " @types/node" " ^10.12.18"
21882188 electron-download "^4.1.0"
You can’t perform that action at this time.
0 commit comments