mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
This reverts commit 8081d35f9c.
This commit is contained in:
1 parent
5d172b89db
commit
820b2d1b7a
7 files changed
+24
-47
No files matched your search
@@ -72,12 +72,7 @@ export async function start() {
|
||||
...process.env,
|
||||
},
|
||||
timeout: 100_000,
|
||||
});
|
||||
|
||||
const cleanup = async () => {
|
||||
await app.close();
|
||||
await remove(CICD).catch(noop);
|
||||
};
|
||||
} as Parameters<typeof electron["launch"]>[0]);
|
||||
|
||||
try {
|
||||
const window = await getMainWindow(app);
|
||||
@@ -85,10 +80,14 @@ export async function start() {
|
||||
return {
|
||||
app,
|
||||
window,
|
||||
cleanup,
|
||||
cleanup: async () => {
|
||||
await app.close();
|
||||
await remove(CICD).catch(noop);
|
||||
},
|
||||
};
|
||||
} catch (error) {
|
||||
await cleanup();
|
||||
await app.close();
|
||||
await remove(CICD).catch(noop);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user