diff --git a/public/js/extra.js b/public/js/extra.js index 39dc2a7a..6f1455cf 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -31,7 +31,7 @@ require('prismjs/components/prism-gherkin') require('./lib/common/login') require('../vendor/md-toc') -const viz = new window.Viz() +let viz = new window.Viz() const plantumlEncoder = require('plantuml-encoder') const ui = getUIElements() @@ -379,8 +379,13 @@ export function finishView (view) { $ele.addClass('graphviz') $value.children().unwrap() }) + .catch(err => { + viz = new window.Viz() + $value.parent().append(`