Skip to content

Commit

Permalink
fix undefined callback error
Browse files Browse the repository at this point in the history
  • Loading branch information
wissenbach committed Mar 30, 2017
1 parent 6ddb17f commit 2887cfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion svg_rendering/page/js-gen/transcript-generation.js
Expand Up @@ -77,7 +77,9 @@ var transcriptGeneration = (function(){
svgRoot.setAttribute("height", rootBBox.height);

// document.body.removeChild(renderContainer);
callback(renderContainer.firstChild);
if (typeof callback !== 'undefined') {
callback(renderContainer.firstChild);
}

}
};
Expand Down

0 comments on commit 2887cfc

Please sign in to comment.