From 7448c439d6e3b422e093aef0489f7c5155adde45 Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Fri, 7 Feb 2025 22:32:28 +0300 Subject: [PATCH] ForcedExp patch backward compatibility #678 --- patches/patches.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/patches.json b/patches/patches.json index 90c2287..2dc8b7a 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=e.getRemoteConfigResolver?.()||e.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==='enable'));(window.Spotx??={}).RemoteExp=values})(config.values||config.activeProperties));" }, "DisableExp": { "InAppMessaging": {