We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4803fde commit 94ddbb1Copy full SHA for 94ddbb1
tools/mermaid.html
@@ -10,7 +10,8 @@
10
function create()
11
{
12
var value = document.getElementById('textarea').value;
13
- var link = 'https://www.draw.io/?create=' + encodeURIComponent(JSON.stringify({type: 'mermaid', data: value}));
+ var prefix = (window.location.search == '?dev=1') ? 'https://test.draw.io/?dev=1&' : 'https://www.draw.io/?';
14
+ var link = prefix + 'create=' + encodeURIComponent(JSON.stringify({type: 'mermaid', data: value}));
15
document.getElementById('link').innerHTML = '<a href="' + link + '" target="_blank">Link</a>';
16
window.open(link);
17
};
0 commit comments