Merge pull request #961 from mermaid-js/develop

Develop
This commit is contained in:
Sidharth Vinod
2022-08-18 12:47:26 +05:30
committed by GitHub
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -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 = () => {
+1 -1
View File
@@ -90,7 +90,7 @@
error = false;
} else if (manualUpdate) {
manualUpdate = false;
} else {
} else if (code !== state.code || config !== state.mermaid) {
outOfSync = true;
}
} catch (e) {