mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 17:30:46 +00:00
Fix preview URL branch display, include link in new PRs (#644)
* Make it easy to include preview links * Fix display of currently previewed branch
This commit is contained in:
@@ -24,7 +24,7 @@ export type Features = {
|
||||
readonly ttl90Days: boolean;
|
||||
};
|
||||
|
||||
export function extractFeatures(given = new URLSearchParams()): Features {
|
||||
export function extractFeatures(given = new URLSearchParams(window.location.search)): Features {
|
||||
const downcased = new URLSearchParams();
|
||||
const set = (value: string, key: string) => downcased.set(key.toLowerCase(), value);
|
||||
const get = (key: string) => downcased.get("feature." + key) ?? undefined;
|
||||
|
||||
Reference in New Issue
Block a user