@tomehq/theme 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-2APCPR2Y.js +2110 -0
- package/dist/entry.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/entry.tsx +1 -1
package/dist/entry.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/src/entry.tsx
CHANGED
|
@@ -237,7 +237,7 @@ function App() {
|
|
|
237
237
|
try {
|
|
238
238
|
// @ts-ignore — CDN dynamic import for browser-only sanitization
|
|
239
239
|
const DOMPurify = (await import(/* @vite-ignore */ "https://cdn.jsdelivr.net/npm/dompurify@3/dist/purify.es.mjs")).default;
|
|
240
|
-
el.innerHTML = DOMPurify.sanitize(svg, { USE_PROFILES: { svg: true, svgFilters: true } });
|
|
240
|
+
el.innerHTML = DOMPurify.sanitize(svg, { USE_PROFILES: { html: true, svg: true, svgFilters: true } });
|
|
241
241
|
} catch {
|
|
242
242
|
// DOMPurify unavailable — render without sanitization (acceptable for trusted content)
|
|
243
243
|
el.innerHTML = svg;
|