File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ require('prismjs/components/prism-gherkin')
31
31
32
32
require ( './lib/common/login' )
33
33
require ( '../vendor/md-toc' )
34
- const viz = new window . Viz ( )
34
+ let viz = new window . Viz ( )
35
35
const plantumlEncoder = require ( 'plantuml-encoder' )
36
36
37
37
const ui = getUIElements ( )
@@ -379,8 +379,13 @@ export function finishView (view) {
379
379
$ele . addClass ( 'graphviz' )
380
380
$value . children ( ) . unwrap ( )
381
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
+ } )
382
387
} catch ( err ) {
383
- $value . unwrap ( )
388
+ viz = new window . Viz ( )
384
389
$value . parent ( ) . append ( `<div class="alert alert-warning">${ escapeHTML ( err ) } </div>` )
385
390
console . warn ( err )
386
391
}
You can’t perform that action at this time.
0 commit comments