mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-21 02:11:11 +00:00
Add assertion
This commit is contained in:
@@ -330,7 +330,7 @@ function doSanitizeHtml(untrusted: string, config: DomSanitizerConfig | undefine
|
||||
return dompurify.sanitize(untrusted, {
|
||||
...resolvedConfig,
|
||||
RETURN_TRUSTED_TYPE: true
|
||||
});
|
||||
}) as TrustedHTML;
|
||||
}
|
||||
} finally {
|
||||
dompurify.removeAllHooks();
|
||||
|
||||
Reference in New Issue
Block a user