mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-05 20:58:27 +02:00
Prepare for webOS & Tizen support
This commit is contained in:
@@ -576,8 +576,10 @@ export function interceptHttpRequests() {
|
||||
const response = await NATIVE_FETCH(request, init);
|
||||
const json = await response.json();
|
||||
|
||||
for (const key in FeatureGates) {
|
||||
json.exp.treatments[key] = FeatureGates[key]
|
||||
if (json && json.exp && json.treatments) {
|
||||
for (const key in FeatureGates) {
|
||||
json.exp.treatments[key] = FeatureGates[key]
|
||||
}
|
||||
}
|
||||
|
||||
response.json = () => Promise.resolve(json);
|
||||
|
Reference in New Issue
Block a user