PermissionFreeWill: don't break permission toggles
This commit is contained in:
parent
4403aee3c1
commit
0c89314d49
1 changed files with 2 additions and 1 deletions
|
|
@ -46,8 +46,9 @@ export default definePlugin({
|
|||
find: "#{intl::ONBOARDING_CHANNEL_THRESHOLD_WARNING}",
|
||||
replacement: [
|
||||
{
|
||||
// replace export getters with functions that always resolve to true
|
||||
match: /{(?:\i:\(\)=>\i,?){2}}/,
|
||||
replace: m => m.replaceAll(canonicalizeMatch(/\(\)=>\i/g), "()=>Promise.resolve(true)")
|
||||
replace: m => m.replaceAll(canonicalizeMatch(/\(\)=>\i/g), "()=>()=>Promise.resolve(true)")
|
||||
}
|
||||
],
|
||||
predicate: () => settings.store.onboarding
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue