modularload
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -296,6 +296,6 @@ 'use strict'; | ||
if (xhref) { | ||
svg.setAttribute('xlink:href', xhref); | ||
svg.parentNode.innerHTML = '<use xlink:href="' + xhref + '"></use>'; | ||
} else { | ||
var href = svg.getAttribute('href'); | ||
if (href) svg.setAttribute('href', href); | ||
if (href) svg.parentNode.innerHTML = '<use href="' + href + '"></use>'; | ||
} | ||
@@ -302,0 +302,0 @@ }); |
@@ -294,6 +294,6 @@ function _classCallCheck(instance, Constructor) { | ||
if (xhref) { | ||
svg.setAttribute('xlink:href', xhref); | ||
svg.parentNode.innerHTML = '<use xlink:href="' + xhref + '"></use>'; | ||
} else { | ||
var href = svg.getAttribute('href'); | ||
if (href) svg.setAttribute('href', href); | ||
if (href) svg.parentNode.innerHTML = '<use href="' + href + '"></use>'; | ||
} | ||
@@ -300,0 +300,0 @@ }); |
{ | ||
"name": "modularload", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Dead simple page transitions and lazy loading.", | ||
@@ -5,0 +5,0 @@ "repository": "modularorg/modularload", |
@@ -215,6 +215,6 @@ export default class { | ||
if (xhref) { | ||
svg.setAttribute('xlink:href', xhref); | ||
svg.parentNode.innerHTML = '<use xlink:href="' + xhref + '"></use>'; | ||
} else { | ||
const href = svg.getAttribute('href'); | ||
if (href) svg.setAttribute('href', href); | ||
if (href) svg.parentNode.innerHTML = '<use href="' + href + '"></use>'; | ||
} | ||
@@ -221,0 +221,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39420