mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(electron): main window should be opened first before destroying onboard window (#5319)
The issue listed on the title will prevent main window from showing on windows.
This commit is contained in:
1
packages/common/env/src/constant.ts
vendored
1
packages/common/env/src/constant.ts
vendored
@@ -6,6 +6,7 @@ declare global {
|
||||
appInfo: {
|
||||
electron: boolean;
|
||||
schema: string;
|
||||
windowName: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +59,9 @@ schema = isDev ? 'affine-dev' : schema;
|
||||
|
||||
export const appInfo = {
|
||||
electron: true,
|
||||
windowName: process.argv
|
||||
.find(arg => arg.startsWith('--window-name='))
|
||||
?.split('=')[1],
|
||||
schema,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user