mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 11:36:25 +08:00
Vendored
+5
-1
@@ -12,6 +12,10 @@ declare interface BUILD_CONFIG_TYPE {
|
||||
|
||||
isElectron: boolean;
|
||||
isWeb: boolean;
|
||||
/**
|
||||
* 'desktop' | 'ios' | 'android'
|
||||
*/
|
||||
isNative: boolean;
|
||||
isMobileWeb: boolean;
|
||||
isIOS: boolean;
|
||||
isAndroid: boolean;
|
||||
@@ -30,4 +34,4 @@ declare interface BUILD_CONFIG_TYPE {
|
||||
linkPreviewUrl: string;
|
||||
}
|
||||
|
||||
declare var BUILD_CONFIG: BUILD_CONFIG_TYPE;
|
||||
declare var BUILD_CONFIG: BUILD_CONFIG_TYPE;
|
||||
|
||||
@@ -33,6 +33,10 @@ export function getBuildConfig(
|
||||
isMobileWeb: distribution === 'mobile',
|
||||
isIOS: distribution === 'ios',
|
||||
isAndroid: distribution === 'android',
|
||||
isNative:
|
||||
distribution === 'desktop' ||
|
||||
distribution === 'ios' ||
|
||||
distribution === 'android',
|
||||
isAdmin: distribution === 'admin',
|
||||
|
||||
appBuildType: 'stable' as const,
|
||||
|
||||
Reference in New Issue
Block a user