From a39f894cff30f37337b5c83d9f4b8b8cfd5a2d80 Mon Sep 17 00:00:00 2001 From: Tharki-God Date: Sat, 28 Oct 2023 20:08:05 +0530 Subject: [PATCH] experiments --- src/renderer/coremods/experiments/plaintextPatches.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/renderer/coremods/experiments/plaintextPatches.ts b/src/renderer/coremods/experiments/plaintextPatches.ts index 29def1e29..6d18e8c6e 100644 --- a/src/renderer/coremods/experiments/plaintextPatches.ts +++ b/src/renderer/coremods/experiments/plaintextPatches.ts @@ -17,9 +17,13 @@ export default [ replace: `"staging"`, }, { - match: /(isDeveloper:{configurable:!1,get:function\(\){return )\w+(}})/g, + match: /(isDeveloper:{configurable:!1,get:\(\)=>)\w+(}})/g, replace: (_, before, after) => `${before}true${after}`, }, + { + match: /=\(0,\w+\.isStaffEnv\)\(\w+\.default\.getCurrentUser\(\)\)/, + replace: "=true", + }, ] : [], },