chore: replace cross-env with shell-emulator & misc (#1464)
This commit is contained in:
13 files changed
+24
-99
No files matched your search
Vendored
+6
@@ -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