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