mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
fix(env): is mobile flag (#8005)
only 'mobile' entry has isMobile = true flag
This commit is contained in:
@@ -10,7 +10,7 @@ import { gqlFetcherFactory } from './fetcher';
|
||||
setupGlobal();
|
||||
|
||||
export function getBaseUrl(): string {
|
||||
if (environment.isDesktop) {
|
||||
if (environment.isElectron) {
|
||||
return runtimeConfig.serverUrlPrefix;
|
||||
}
|
||||
if (typeof window === 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user