From b3ced889c75eb3ab11d44df5c06845a3f926c4eb Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Sat, 8 Feb 2025 22:41:49 +0300 Subject: [PATCH] fixed ForcedExp for custom values --- patches/patches.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/patches.json b/patches/patches.json index 4b38e41..1b60221 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -75,7 +75,7 @@ "to": "" }, "match": "((?:{configuration|{resolver|instance):(.).(?:getRemoteConfig|getUrlDispenserServiceClient).+?;)", - "replace": "$1const experiments={enable:[],disable:[],custom:[]},setExpValue=(v,e,val)=>v&&(v.set?v.set(e,val):v[e]&&(v[e].value=val)),config=$2.getRemoteConfigResolver?.()||$2.getRemoteConfiguration?.();config&&((values=>{for(const type in experiments)experiments[type].forEach(exp=>setExpValue(values,type==='custom'?exp.name:exp,type==='enable'));(window.Spotx??={}).RemoteExp=values})(config.values||config.activeProperties));" + "replace": "$1const experiments={enable:[],disable:[],custom:[]},setExpValue=(v,e,val)=>v&&(v.set?v.set(e,val):v[e]&&(v[e].value=val)),config=$2.getRemoteConfigResolver?.()||$2.getRemoteConfiguration?.();config&&((values=>{for(const type in experiments)experiments[type].forEach(exp=>setExpValue(values,type==='custom'?exp.name:exp,type==='custom'?exp.value:type==='enable'));(window.Spotx??={}).RemoteExp=values})(config.values||config.activeProperties));" }, "DisableExp": { "InAppMessaging": { @@ -570,7 +570,7 @@ "native_description": "Enable dynamic colors for the app", "version": { "fr": "1.2.47", - "to": "1.2.57" + "to": "1.2.56" } }, "EmbeddedNpvAds": {