mirror of
https://github.com/Vendicated/Vencord
synced 2024-09-13 04:29:24 -04:00
Fix dm crashes (thank you sadan)
This commit is contained in:
parent
8423ac4698
commit
d297b5a102
1 changed files with 1 additions and 1 deletions
|
@ -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]));$&"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue