Skip to content

Commit

Permalink
wip: remove pretty printing for firefox compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ca-d committed Dec 8, 2023
1 parent 1df408a commit ff12f78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
3 changes: 1 addition & 2 deletions sld-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ import {
newStartResizeBREvent,
newStartResizeTLEvent,
Point,
prettyPrint,
privType,
removeNode,
removeTerminal,
Expand Down Expand Up @@ -585,7 +584,7 @@ export class SLDEditor extends LitElement {
saveSVG() {
const sld = this.sld.cloneNode(true) as Element;
cleanXML(sld);
const blob = new Blob([prettyPrint(sld)], {
const blob = new Blob([new XMLSerializer().serializeToString(sld)], {
type: 'application/xml',
});

Expand Down
Loading

0 comments on commit ff12f78

Please sign in to comment.