mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-25 20:54:18 +00:00
Load Legacy Mongo Shell V2 by default (#1424)
- 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"
This commit is contained in:
committed by
GitHub
parent
874cec26fc
commit
fb8871cfbf
@@ -2,14 +2,9 @@ import { configContext } from "../../../ConfigContext";
|
||||
import { userContext } from "../../../UserContext";
|
||||
|
||||
export function getMongoShellOrigin(): string {
|
||||
if (
|
||||
userContext.features.enableLegacyMongoShellV1 === true ||
|
||||
userContext.features.enableLegacyMongoShellV2 === true ||
|
||||
userContext.features.enableLegacyMongoShellV1Dist === true ||
|
||||
userContext.features.enableLegacyMongoShellV2Dist === true
|
||||
) {
|
||||
return window.origin;
|
||||
if (userContext.features.loadLegacyMongoShellFromBE === true) {
|
||||
return configContext.BACKEND_ENDPOINT;
|
||||
}
|
||||
|
||||
return configContext.BACKEND_ENDPOINT;
|
||||
return window.origin;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user