require is not defined

fix security issue with http local server:
https://github.com/electron/electron/blob/master/docs/api/browser-window.md#class-browserwindow

beutify dev-web -> web
fix tslint.json v5 naming issue
This commit is contained in:
Yuri Cherepanov
2019-11-15 22:45:10 +02:00
parent c4b2cb6733
commit 632c454056
4 changed files with 7 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ function createWindow() {
height: size.height,
webPreferences: {
nodeIntegration: true,
allowRunningInsecureContent: (serve) ? true : false,
},
});