diff --git a/tools/generate.html b/tools/generate.html index ef73bae..84bc27f 100755 --- a/tools/generate.html +++ b/tools/generate.html @@ -72,6 +72,7 @@ 'https://test.draw.io/?dev=1&lightbox=1&border=10&' : 'https://www.draw.io/?lightbox=1&border=10&'; var link = prefix + 'create=' + encodeURIComponent(JSON.stringify({type: 'mermaid', data: value})); + document.getElementById('preview').removeAttribute('srcdoc'); document.getElementById('preview').src = link; prefix = (urlParams['dev'] == '1') ? 'https://test.draw.io/?dev=1&' : 'https://www.draw.io/?'; link = prefix + 'create=' + encodeURIComponent(JSON.stringify({type: 'mermaid', data: value})); @@ -86,11 +87,11 @@