mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update packages/excalidraw/data/index.ts
This commit is contained in:
parent
e9d5c3e002
commit
90cf344e7c
1 changed files with 2 additions and 0 deletions
|
@ -135,6 +135,8 @@ export const exportCanvas = async (
|
|||
if (type === "svg") {
|
||||
return fileSave(
|
||||
svgPromise.then((svg) => {
|
||||
// adding SVG preamble so that older software parse the SVG file
|
||||
// properly
|
||||
return new Blob([SVG_DOCUMENT_PREAMBLE + svg.outerHTML], {
|
||||
type: MIME_TYPES.svg,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue