Fix for link to view

This commit is contained in:
Knut Sveidqvist
2019-11-23 20:59:15 +01:00
parent 5e22c8f694
commit 725941de99
2 changed files with 2 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -53,7 +53,7 @@ export const onDownloadSVG = event => {
let url = '/view'; let url = '/view';
let iUrl; let iUrl;
const unsubscribe = codeStore.subscribe( state => { const unsubscribe = codeStore.subscribe( state => {
url = '/#/view/' + Base64.encode(JSON.stringify(state)); url = '/mermaid-live-editor/#/view/' + Base64.encode(JSON.stringify(state));
iUrl = `https://mermaid.ink/img/${Base64.encode(JSON.stringify(state))}`; iUrl = `https://mermaid.ink/img/${Base64.encode(JSON.stringify(state))}`;
}); });
</script> </script>