mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 09:36:17 +08:00
chore: bump electron version (#7922)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { AIProvider } from '@affine/core/blocksuite/presets/ai';
|
||||
import { apis } from '@affine/electron-api';
|
||||
import { apis, appInfo } from '@affine/electron-api';
|
||||
import type { OAuthProviderType } from '@affine/graphql';
|
||||
import {
|
||||
ApplicationFocused,
|
||||
@@ -160,8 +160,8 @@ export class AuthService extends Service {
|
||||
|
||||
private buildRedirectUri(callbackUrl: string) {
|
||||
const params: string[][] = [];
|
||||
if (environment.isDesktop && window.appInfo.schema) {
|
||||
params.push(['schema', window.appInfo.schema]);
|
||||
if (environment.isDesktop && appInfo?.schema) {
|
||||
params.push(['schema', appInfo.schema]);
|
||||
}
|
||||
const query =
|
||||
params.length > 0
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { appInfo } from '@affine/electron-api';
|
||||
import type {
|
||||
CreateCheckoutSessionInput,
|
||||
SubscriptionRecurring,
|
||||
@@ -27,8 +28,8 @@ const getDefaultSubscriptionSuccessCallbackLink = (
|
||||
plan === SubscriptionPlan.AI ? '/ai-upgrade-success' : '/upgrade-success';
|
||||
const urlString = getAffineCloudBaseUrl() + path;
|
||||
const url = new URL(urlString);
|
||||
if (environment.isDesktop) {
|
||||
url.searchParams.set('schema', window.appInfo.schema);
|
||||
if (environment.isDesktop && appInfo) {
|
||||
url.searchParams.set('schema', appInfo.schema);
|
||||
}
|
||||
return url.toString();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user