Merge pull request #14773 from overleaf/ii-modify-design-system-update-split-test
[web] Modify design-system-update split test GitOrigin-RevId: f28aeef5ba782006afd30fd2862d0ad129077f6c
This commit is contained in:
@@ -4,6 +4,10 @@ export function isSplitTestEnabled(name: string) {
|
||||
return getMeta('ol-splitTestVariants')?.[name] === 'enabled'
|
||||
}
|
||||
|
||||
export function getSplitTestVariant(name: string, fallback?: string) {
|
||||
return getMeta('ol-splitTestVariants')?.[name] || fallback
|
||||
}
|
||||
|
||||
export function parseIntFromSplitTest(name: string, defaultValue: number) {
|
||||
const v = getMeta('ol-splitTestVariants')?.[name]
|
||||
const n = parseInt(v, 10)
|
||||
|
||||
Reference in New Issue
Block a user