1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

fix BetterGifPicker, Experiments

This commit is contained in:
AutumnVN 2024-03-28 19:40:48 +07:00 committed by Luna
parent a6c26b7ee2
commit 79ee7703e0
2 changed files with 3 additions and 3 deletions

View file

@ -15,8 +15,8 @@ export default definePlugin({
{ {
find: ".GIFPickerResultTypes.SEARCH", find: ".GIFPickerResultTypes.SEARCH",
replacement: [{ replacement: [{
match: "this.state={resultType:null}", match: /(?<="state",{resultType:)null/,
replace: 'this.state={resultType:"Favorites"}' replace: '"Favorites"'
}] }]
} }
] ]

View file

@ -64,7 +64,7 @@ export default definePlugin({
} }
}, },
{ {
find: ".isStaff=()", find: '"isStaff",',
predicate: () => settings.store.enableIsStaff, predicate: () => settings.store.enableIsStaff,
replacement: [ replacement: [
{ {