mirror of
https://github.com/wassname/talk.git
synced 2026-08-05 13:30:26 +08:00
Version Bumps (#2677)
* chore: upgraded versions * chore: linting * fix: updated snap
This commit is contained in:
@@ -55,7 +55,7 @@ export const countHandler = ({ mongo, i18n }: CountOptions): RequestHandler => {
|
||||
}
|
||||
);
|
||||
// Strip dangerous html from translation.
|
||||
html = DOMPurify.sanitize(html) as string;
|
||||
html = DOMPurify.sanitize(html);
|
||||
}
|
||||
|
||||
// Respond using jsonp.
|
||||
|
||||
@@ -130,7 +130,7 @@ function createMessageTranslator(i18n: I18n) {
|
||||
}
|
||||
|
||||
// Configure the purification.
|
||||
const purify = createDOMPurify<false>(dom.window);
|
||||
const purify = createDOMPurify(dom.window);
|
||||
|
||||
// Strip the l10n attributes from the email HTML.
|
||||
purify.sanitize(dom.window.document.documentElement, {
|
||||
|
||||
Reference in New Issue
Block a user