Skip to content

Commit

Permalink
Merge pull request #961 from mermaid-js/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
sidharthv96 authored Aug 18, 2022
2 parents 1becc71 + 0e07537 commit 69349ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/lib/components/actions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,16 @@
const onDownloadPNG = (event: Event) => {
exportImage(event, downloadImage);
void logEvent('downloadPNG');
void logEvent('download', {
type: 'png'
});
};
const onDownloadSVG = () => {
simulateDownload(getFileName('svg'), `data:image/svg+xml;base64,${getBase64SVG()}`);
void logEvent('downloadSVG');
void logEvent('download', {
type: 'svg'
});
};
const onCopyMarkdown = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/view.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
error = false;
} else if (manualUpdate) {
manualUpdate = false;
} else {
} else if (code !== state.code || config !== state.mermaid) {
outOfSync = true;
}
} catch (e) {
Expand Down

0 comments on commit 69349ba

Please sign in to comment.