mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 02:35:58 +08:00
feat: onboarding electron redirect (#5327)
This commit is contained in:
@@ -108,6 +108,10 @@ async function handleOauthJwt(url: string) {
|
||||
|
||||
ipcMain.once('affine:login', () => {
|
||||
hiddenWindow?.destroy();
|
||||
if (urlObj.searchParams.get('next') === 'onboarding') {
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
mainWindow.loadURL(mainWindowOrigin + '/auth/onboarding');
|
||||
}
|
||||
});
|
||||
|
||||
// hacks to refresh auth state in the main window
|
||||
|
||||
Reference in New Issue
Block a user