Make Volker's suggested change. Issue #831.

This commit is contained in:
Davide P. Cervone 2016-05-11 20:39:42 -04:00
parent 3473ccb613
commit e14a8516d7

View File

@ -37,8 +37,8 @@
// Get the URL of the page (for use with xlink:href) when there // Get the URL of the page (for use with xlink:href) when there
// is a <base> element on the page. // is a <base> element on the page.
// //
var SVGURL = String(document.location).replace(/#.*$/,""); var SVGURL = (document.getElementsByTagName("base").length === 0) ? "" :
if (document.getElementsByTagName("base").length === 0) SVGURL = ""; String(document.location).replace(/#.*$/,"");
SVG.Augment({ SVG.Augment({
HFUZZ: 2, // adjustments for height and depth of final svg element HFUZZ: 2, // adjustments for height and depth of final svg element