aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/messageLogger/index.tsx
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-01-30 05:02:17 +0100
committerVendicated <vendicated@riseup.net>2023-01-30 05:04:06 +0100
commit62f7e4d45c0aa7bdbedecd639e51e6f2446fcc2b (patch)
tree5410566f5668426e1c53c55d2d0a22b00edb6191 /src/plugins/messageLogger/index.tsx
parentfce7d6b6814c70fe71baee57f272f4f3717c4379 (diff)
downloadVencord-62f7e4d45c0aa7bdbedecd639e51e6f2446fcc2b.tar.gz
Vencord-62f7e4d45c0aa7bdbedecd639e51e6f2446fcc2b.tar.bz2
Vencord-62f7e4d45c0aa7bdbedecd639e51e6f2446fcc2b.zip
Add stylelint
Diffstat (limited to 'src/plugins/messageLogger/index.tsx')
-rw-r--r--src/plugins/messageLogger/index.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/messageLogger/index.tsx b/src/plugins/messageLogger/index.tsx
index 8c7fa11..8c897b6 100644
--- a/src/plugins/messageLogger/index.tsx
+++ b/src/plugins/messageLogger/index.tsx
@@ -45,8 +45,8 @@ export default definePlugin({
},
stop() {
- document.querySelectorAll(".messageLogger-deleted").forEach(e => e.remove());
- document.querySelectorAll(".messageLogger-edited").forEach(e => e.remove());
+ document.querySelectorAll(".messagelogger-deleted").forEach(e => e.remove());
+ document.querySelectorAll(".messagelogger-edited").forEach(e => e.remove());
document.body.classList.remove("messagelogger-red-overlay");
document.body.classList.remove("messagelogger-red-text");
},
@@ -54,7 +54,7 @@ export default definePlugin({
renderEdit(edit: { timestamp: any, content: string; }) {
return (
<ErrorBoundary noop>
- <div className="messageLogger-edited">
+ <div className="messagelogger-edited">
{Parser.parse(edit.content)}
<Timestamp
timestamp={edit.timestamp}
@@ -252,7 +252,7 @@ export default definePlugin({
},
{
match: /\["className","attachment","inlineMedia".+?className:/,
- replace: "$& (deleted ? 'messageLogger-deleted-attachment ' : '') +"
+ replace: "$& (deleted ? 'messagelogger-deleted-attachment ' : '') +"
}
]
},
@@ -268,9 +268,9 @@ export default definePlugin({
replace: "var $1=$2.id,deleted=$2.message.deleted,"
},
{
- // Append messageLogger-deleted to classNames if deleted
+ // Append messagelogger-deleted to classNames if deleted
match: /\)\("li",\{(.+?),className:/,
- replace: ")(\"li\",{$1,className:(deleted ? \"messageLogger-deleted \" : \"\")+"
+ replace: ")(\"li\",{$1,className:(deleted ? \"messagelogger-deleted \" : \"\")+"
}
]
},