EquicordHelper: dont crash because of dziurwa

This commit is contained in:
thororen1234 2026-06-17 11:47:09 -04:00
parent 39132922af
commit 665e43f048
No known key found for this signature in database

View file

@ -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(",