feat: init ios-bridge

This commit is contained in:
EYHN
2024-04-25 16:50:21 +08:00
parent 4ec89ebd69
commit b2678b8448
15 changed files with 245 additions and 19 deletions
+3
View File
@@ -10,6 +10,9 @@ import { gqlFetcherFactory } from './fetcher';
setupGlobal();
export function getBaseUrl(): string {
if ((globalThis as any)['__AFFINE_CLOUD_BASE_URL__']) {
return (globalThis as any)['__AFFINE_CLOUD_BASE_URL__'];
}
if (environment.isDesktop) {
return runtimeConfig.serverUrlPrefix;
}