Skip to content

Commit e0870e6

Browse files
authored
Merge pull request #4 from brunoportela/node_migration
Node migration
2 parents 72334ba + e22be3c commit e0870e6

File tree

5 files changed

+8427
-4784
lines changed

5 files changed

+8427
-4784
lines changed

electron/Main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { app, BrowserWindow } from 'electron';
2-
32
import path from 'path';
3+
44
import './routes/dashboard';
55
import './routes/data';
66

7-
87
// Declare variable to be used as the application window
98
let win: Electron.BrowserWindow;
109

@@ -19,6 +18,7 @@ const createWindow = () => {
1918
// Node integration allows node.js to run
2019
webPreferences: {
2120
nodeIntegration: true,
21+
contextIsolation: false,
2222
},
2323
});
2424

0 commit comments

Comments
 (0)