Attempt to make OverrideForumDefaults not always slow

This commit is contained in:
Nuckyz 2025-07-14 17:09:21 -03:00 committed by dorkbutt
parent 2a52efbd97
commit ec6fbb190f
No known key found for this signature in database

View file

@ -36,11 +36,11 @@ export default definePlugin({
find: "getDefaultLayout(){", find: "getDefaultLayout(){",
replacement: [ replacement: [
{ {
match: /getDefaultLayout\(\){/, match: /}getDefaultLayout\(\){/,
replace: "$&return $self.getLayout();" replace: "$&return $self.getLayout();"
}, },
{ {
match: /getDefaultSortOrder\(\){/, match: /}getDefaultSortOrder\(\){/,
replace: "$&return $self.getSortOrder();" replace: "$&return $self.getSortOrder();"
} }
] ]