The chromium dev tools do not display when I call the openDevTools function on Mac with m1 processor.
My environment:
Processor: M1
OS: Big Sur 11.1
Node v15.4.0 compiled for arm64
Electron 11.1.1
Code
const { app, BrowserWindow } = require('electron')
function createWindow () {
const win = new BrowserWindow({
width: 1024,
height: 800,
webPreferences: {
nodeIntegration: true
}
});
win.loadFile('index.html');
win.webContent.openDevTools();
}
app.whenReady().then(createWindow);
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
})
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
});