diff options
author | Kristóf Marussy <kristof@marussy.com> | 2024-02-24 01:13:00 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2024-02-24 14:20:49 +0100 |
commit | 01db8d59c8bcf69d9c375c7f9c8e1f1d03498c00 (patch) | |
tree | b21ac46b8d0e4c0e050a1f20c1f6f942c572a100 /subprojects/frontend/src | |
parent | refactor(frontend): improve save dialog label (diff) | |
download | refinery-01db8d59c8bcf69d9c375c7f9c8e1f1d03498c00.tar.gz refinery-01db8d59c8bcf69d9c375c7f9c8e1f1d03498c00.tar.zst refinery-01db8d59c8bcf69d9c375c7f9c8e1f1d03498c00.zip |
fix(web): CSP for SVG rasterization
We have to allow img-src blob: to be able to rasterize SVG files by loading
their blobs as object URLs into <img> objects.
Also fixes font-style for PNG export.
Diffstat (limited to 'subprojects/frontend/src')
-rw-r--r-- | subprojects/frontend/src/graph/export/exportDiagram.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subprojects/frontend/src/graph/export/exportDiagram.tsx b/subprojects/frontend/src/graph/export/exportDiagram.tsx index d2af52d9..cd374d23 100644 --- a/subprojects/frontend/src/graph/export/exportDiagram.tsx +++ b/subprojects/frontend/src/graph/export/exportDiagram.tsx | |||
@@ -134,7 +134,7 @@ async function fetchVariableFontCSS(): Promise<string> { | |||
134 | } | 134 | } |
135 | @font-face { | 135 | @font-face { |
136 | font-family: 'Open Sans Variable'; | 136 | font-family: 'Open Sans Variable'; |
137 | font-style: normal; | 137 | font-style: italic; |
138 | font-display: swap; | 138 | font-display: swap; |
139 | font-weight: 300 800; | 139 | font-weight: 300 800; |
140 | src: url(${variableItalicDataURL}) format('woff2-variations'); | 140 | src: url(${variableItalicDataURL}) format('woff2-variations'); |