mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
test: remove quick-start boilerplate from import-meta fixture
Remove macOS dock handling boilerplate code from electron-quick-start. This test fixture is a short-lived process that calls process.exit() on completion, so we don't need it.
This commit is contained in:
8
spec/fixtures/esm/import-meta/main.mjs
vendored
8
spec/fixtures/esm/import-meta/main.mjs
vendored
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user