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