Skip to content

Commit 4428768

Browse files
committed
chore: remove data feature flag preload parsers
1 parent bbdb24c commit 4428768

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

preload.js

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,25 +92,10 @@ window.sessionFeatureFlags = {
9292
debugOnionRequests: false,
9393
};
9494

95-
function parseProOriginatingPlatform(v) {
96-
return v === 1 || v === 2 ? v : null;
97-
}
98-
99-
function parseProAccessVariant(v) {
100-
return v === 1 || v === 2 || v === 3 ? v : null;
101-
}
102-
103-
function parseProAccessExpiry(v) {
104-
const num = Number.parseInt(v);
105-
return Number.isFinite(num) ? num : null;
106-
}
107-
10895
window.sessionFeatureFlagsWithData = {
109-
mockProOriginatingPlatform: parseProOriginatingPlatform(
110-
process.env.SESSION_PRO_MOCK_ORIGINATING_PLATFORM
111-
),
112-
mockProAccessVariant: parseProAccessVariant(process.env.SESSION_PRO_MOCK_ACCESS_VARIANT),
113-
mockProAccessExpiry: parseProAccessExpiry(process.env.SESSION_PRO_MOCK_ACCESS_EXPIRY),
96+
mockProOriginatingPlatform: null,
97+
mockProAccessVariant: null,
98+
mockProAccessExpiry: null,
11499
};
115100

116101
window.versionInfo = {

0 commit comments

Comments
 (0)