Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

require is not defined on html script with electron

app.on('ready', () => {
    mainWindow = new BrowserWindow({
        webPreferences: {
            nodeIntegration: true,
            contextIsolation: false,
        }
    });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #require #defined #html #script #electron
ADD COMMENT
Topic
Name
1+4 =