mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
chore: replace cross-env with shell-emulator & misc (#1464)
This commit is contained in:
6
packages/env/src/index.ts
vendored
6
packages/env/src/index.ts
vendored
@@ -51,6 +51,12 @@ export type Environment = Browser | Server | Desktop;
|
||||
|
||||
let environment: Environment | null = null;
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
CLIENT_APP?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export function getEnvironment() {
|
||||
if (environment) {
|
||||
return environment;
|
||||
|
||||
Reference in New Issue
Block a user