Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

why does it say require is not defines

// In the Main.js file in electron
app.on('ready', () => {
    mainWindow = new BrowserWindow({
      // Add these lines of code and it should start working
        webPreferences: {
            nodeIntegration: true,
            contextIsolation: false,
        }
    });
});
 
PREVIOUS NEXT
Tagged: #require #defines
ADD COMMENT
Topic
Name
2+7 =