diff --git a/spec/fixtures/esm/import-meta/main.mjs b/spec/fixtures/esm/import-meta/main.mjs index c853aac8cc..1b6d3830d7 100644 --- a/spec/fixtures/esm/import-meta/main.mjs +++ b/spec/fixtures/esm/import-meta/main.mjs @@ -23,12 +23,6 @@ async function createWindow() { app.whenReady().then(() => { createWindow(); - - app.on('activate', function () { - if (BrowserWindow.getAllWindows().length === 0) createWindow(); - }); }); -app.on('window-all-closed', function () { - if (process.platform !== 'darwin') app.quit(); -}); +app.on('window-all-closed', app.quit);