Skip to content

Commit

Permalink
Version 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dasboe committed Sep 20, 2018
1 parent b2bb19d commit 6a78461
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions dist/svg-inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@
SVGInject.err = function(img, fallbackSrc) {
if (img) {
if (img[__SVGINJECT] != FAIL) {
// workaround for IE8 (only) not displaying images after src attribute gets replaced dynamically
img.parentNode.replaceChild(img, img);

removeEventListeners(img);

if (IS_SVG_NOT_SUPPORTED) {
Expand Down
2 changes: 1 addition & 1 deletion dist/svg-inject.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions examples/svg-inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@
SVGInject.err = function(img, fallbackSrc) {
if (img) {
if (img[__SVGINJECT] != FAIL) {
// workaround for IE8 (only) not displaying images after src attribute gets replaced dynamically
img.parentNode.replaceChild(img, img);

removeEventListeners(img);

if (IS_SVG_NOT_SUPPORTED) {
Expand Down
2 changes: 1 addition & 1 deletion examples/svg-inject.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6a78461

Please sign in to comment.