require not defined in html file

Solutions on MaxInterview for require not defined in html file by the best coders in the world

showing results for - "require not defined in html file"
Quincy
29 Sep 2018
1function createAddItemWindow() {
2
3    // Create a new window
4    addItemWindown = new BrowserWindow({
5        width: 300,
6        height: 200,
7        title: 'Add Item',
8
9        // The lines below solved the issue
10        webPreferences: {
11            nodeIntegration: true
12        }
13})}
14