EquicordHelper: dont crash because of dziurwa
This commit is contained in:
parent
39132922af
commit
665e43f048
1 changed files with 9 additions and 0 deletions
|
|
@ -178,6 +178,15 @@ export default definePlugin({
|
|||
}
|
||||
]
|
||||
},
|
||||
// Fixes crashing with unknown gift styles
|
||||
// ty dziurwa for crashing me
|
||||
{
|
||||
find: "Unexpected giftStyle",
|
||||
replacement: {
|
||||
match: /throw Error\(`Unexpected giftStyle \$\{(\i)\}`\);/,
|
||||
replace: "console.warn(`Unexpected giftStyle $${$1}`);"
|
||||
}
|
||||
},
|
||||
// Fix a race condition?
|
||||
{
|
||||
find: ".completeOperation(",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue