mirror of
https://github.com/Equicord/Equicord.git
synced 2025-02-15 18:04:07 -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: {
|
default: {
|
||||||
type: OptionType.BOOLEAN,
|
type: OptionType.BOOLEAN,
|
||||||
description: "Enable avatar preview by default.",
|
description: "Enable avatar preview by default.",
|
||||||
default: true
|
default: false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -67,12 +67,12 @@ export default definePlugin({
|
||||||
settings,
|
settings,
|
||||||
patches: [
|
patches: [
|
||||||
{
|
{
|
||||||
find: "}),(0,l.jsx)(T.default.Title,{className:ei.title,children:er.default.Messages.COLLECTIBLES_SHOP})]",
|
find: "default.Messages.COLLECTIBLES_SHOP})]})",
|
||||||
replacement: [{
|
replacement: {
|
||||||
match: "{className:ei.title,children:er.default.Messages.COLLECTIBLES_SHOP}",
|
match: /(className:\i\.title,children:)(\i\.default\.Messages\.COLLECTIBLES_SHOP)/,
|
||||||
replace: "{className:ei.title,children:[er.default.Messages.COLLECTIBLES_SHOP,$self.PreviewToggle()]}"
|
replace: "$1[$2,$self.PreviewToggle()]"
|
||||||
}]
|
},
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
PreviewToggle,
|
PreviewToggle,
|
||||||
async start() {
|
async start() {
|
||||||
|
|
Loading…
Reference in a new issue