mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-15 10:03:42 -05:00
Fix BetterShopPreview
This commit is contained in:
parent
cdeb34b5f2
commit
1a589f6939
1 changed files with 7 additions and 7 deletions
|
@ -27,7 +27,7 @@ const settings = definePluginSettings({
|
|||
default: {
|
||||
type: OptionType.BOOLEAN,
|
||||
description: "Enable avatar preview by default.",
|
||||
default: true
|
||||
default: false
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -67,12 +67,12 @@ export default definePlugin({
|
|||
settings,
|
||||
patches: [
|
||||
{
|
||||
find: "}),(0,l.jsx)(T.default.Title,{className:ei.title,children:er.default.Messages.COLLECTIBLES_SHOP})]",
|
||||
replacement: [{
|
||||
match: "{className:ei.title,children:er.default.Messages.COLLECTIBLES_SHOP}",
|
||||
replace: "{className:ei.title,children:[er.default.Messages.COLLECTIBLES_SHOP,$self.PreviewToggle()]}"
|
||||
}]
|
||||
}
|
||||
find: "default.Messages.COLLECTIBLES_SHOP})]})",
|
||||
replacement: {
|
||||
match: /(className:\i\.title,children:)(\i\.default\.Messages\.COLLECTIBLES_SHOP)/,
|
||||
replace: "$1[$2,$self.PreviewToggle()]"
|
||||
},
|
||||
},
|
||||
],
|
||||
PreviewToggle,
|
||||
async start() {
|
||||
|
|
Loading…
Reference in a new issue