fix canary crashing
This commit is contained in:
parent
fdf3480b27
commit
686f2d925f
2 changed files with 3 additions and 2 deletions
|
@ -45,8 +45,8 @@ export default definePlugin({
|
|||
{
|
||||
find: ".embedWrapper,embed",
|
||||
replacement: [{
|
||||
match: /\.embedWrapper/g,
|
||||
replace: "$&+(this.props.channel.nsfw?' vc-nsfw-img':'')"
|
||||
match: /\.embedWrapper(?=.+?channel_id:(\i)\.id)/g,
|
||||
replace: "$&+($1.nsfw?' vc-nsfw-img':'')"
|
||||
}]
|
||||
}
|
||||
],
|
||||
|
|
|
@ -328,6 +328,7 @@ export default definePlugin({
|
|||
// Attachment renderer
|
||||
// Module 96063
|
||||
find: ".removeAttachmentHoverButton",
|
||||
group: true,
|
||||
replacement: [
|
||||
{
|
||||
match: /(className:\i,attachment:\i),/,
|
||||
|
|
Loading…
Reference in a new issue