fix: remove as const from svgSanitizeOptions to fix DOMPurify type compat
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
iteration: 1
|
iteration: 2
|
||||||
max_iterations: 30
|
max_iterations: 30
|
||||||
status: active
|
status: active
|
||||||
goal: "Review, fix, benchmark, and verify every package in Phase 1 performance branch until perfect"
|
goal: "Review, fix, benchmark, and verify every package in Phase 1 performance branch until perfect"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { parseHTML } from "linkedom";
|
|||||||
const svgSanitizeOptions = {
|
const svgSanitizeOptions = {
|
||||||
USE_PROFILES: { svg: true, svgFilters: true },
|
USE_PROFILES: { svg: true, svgFilters: true },
|
||||||
FORBID_TAGS: ["style"],
|
FORBID_TAGS: ["style"],
|
||||||
} as const;
|
};
|
||||||
|
|
||||||
const LINKEDOM_NODE_PROPS = [
|
const LINKEDOM_NODE_PROPS = [
|
||||||
"ownerDocument",
|
"ownerDocument",
|
||||||
|
|||||||
Reference in new issue
Block a user