mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-24 20:24:13 +00:00
- Load Legacy Mongo Shell V2 by default - Add/Keep feature flags to load from portal BE and V1 - Skip code coverage if skipCodeCoverage environment variable is set to "true"
11 lines
297 B
TypeScript
11 lines
297 B
TypeScript
import { configContext } from "../../../ConfigContext";
|
|
import { userContext } from "../../../UserContext";
|
|
|
|
export function getMongoShellOrigin(): string {
|
|
if (userContext.features.loadLegacyMongoShellFromBE === true) {
|
|
return configContext.BACKEND_ENDPOINT;
|
|
}
|
|
|
|
return window.origin;
|
|
}
|