We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b260093 commit 40a04f7Copy full SHA for 40a04f7
1 file changed
public/js/extra.js
@@ -31,7 +31,7 @@ require('prismjs/components/prism-gherkin')
31
32
require('./lib/common/login')
33
require('../vendor/md-toc')
34
-const viz = new window.Viz()
+let viz = new window.Viz()
35
const plantumlEncoder = require('plantuml-encoder')
36
37
const ui = getUIElements()
@@ -379,8 +379,13 @@ export function finishView (view) {
379
$ele.addClass('graphviz')
380
$value.children().unwrap()
381
})
382
+ .catch(err => {
383
+ viz = new window.Viz()
384
+ $value.parent().append(`<div class="alert alert-warning">${escapeHTML(err)}</div>`)
385
+ console.warn(err)
386
+ })
387
} catch (err) {
- $value.unwrap()
388
389
$value.parent().append(`<div class="alert alert-warning">${escapeHTML(err)}</div>`)
390
console.warn(err)
391
}
0 commit comments