feat(core): open desktop directly in subscription landing page (#6661)

This commit is contained in:
CatsJuice
2024-04-22 14:21:58 +00:00
parent 71a5be5385
commit 6ec97b27c4
6 changed files with 50 additions and 7 deletions

View File

@@ -67,6 +67,12 @@ async function handleAffineUrl(url: string) {
if (urlObj.hostname === 'signin-redirect') {
await handleOauthJwt(url);
}
if (urlObj.hostname === 'bring-to-front') {
const mainWindow = await getMainWindow();
if (mainWindow) {
mainWindow.show();
}
}
}
async function handleOauthJwt(url: string) {