fix(Viewer): correctly export <defs> node on IE

Closes #710
This commit is contained in:
Nico Rehwaldt 2017-09-26 15:22:15 +02:00 committed by Philipp Fromme
parent 9033094473
commit 4c01a5dab1
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ Viewer.prototype.saveSVG = function(options, done) {
defsNode = domQuery('defs', canvas._svg); defsNode = domQuery('defs', canvas._svg);
var contents = innerSVG(contentNode), var contents = innerSVG(contentNode),
defs = (defsNode && defsNode.outerHTML) || ''; defs = defsNode ? '<defs>' + innerSVG(defsNode) + '</defs>' : '';
var bbox = contentNode.getBBox(); var bbox = contentNode.getBBox();