This commit is contained in:
Cohee
2024-01-01 16:07:21 +02:00
parent 213ff4b89a
commit 30732ada32
6 changed files with 8 additions and 8 deletions

View File

@ -275,7 +275,7 @@ DOMPurify.addHook('afterSanitizeAttributes', function (node) {
}
});
DOMPurify.addHook("uponSanitizeAttribute", (_, data, config) => {
DOMPurify.addHook('uponSanitizeAttribute', (_, data, config) => {
if (!config['MESSAGE_SANITIZE']) {
return;
}
@ -287,7 +287,7 @@ DOMPurify.addHook("uponSanitizeAttribute", (_, data, config) => {
return v;
}
return "custom-" + v;
return 'custom-' + v;
}).join(' ');
}
break;