mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
feat(core): open desktop directly in subscription landing page (#6661)
This commit is contained in:
@@ -32,6 +32,7 @@ import { RouterProvider } from 'react-router-dom';
|
||||
const desktopWhiteList = [
|
||||
'/desktop-signin',
|
||||
'/open-app/signin-redirect',
|
||||
'/open-app/url',
|
||||
'/upgrade-success',
|
||||
'/ai-upgrade-success',
|
||||
];
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user