Fix dm crashes (thank you sadan)

This commit is contained in:
Sam 2024-08-16 22:09:13 +00:00
parent 8423ac4698
commit d297b5a102

View file

@ -72,7 +72,7 @@ export default definePlugin({
replacement:
{
match: /let{isAuthenticated:/,
replace: "arguments[0]?.toolbar?.unshift($self.headerButton(arguments[0]));$&"
replace: "if(Array.isArray(arguments[0]?.toolbar))arguments[0].toolbar.unshift($self.headerButton(arguments[0]));$&"
}
}
]