Skip to content

Commit

Permalink
fix attribute selector for unstyled image flash
Browse files Browse the repository at this point in the history
  • Loading branch information
dasboe committed Aug 7, 2018
1 parent de9ff48 commit ab83b9b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/svg-inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
var defaultOptions = extendOptions(DEFAULT_OPTIONS, options);
var svgLoadCache = {};

addStyleToHead('img[onload=^"' + globalName + '("]{visibility:hidden;}');
addStyleToHead('img[onload^="' + globalName + '("]{visibility:hidden;}');

/**
* SVGInject
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.

2 changes: 1 addition & 1 deletion examples/svg-inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
var defaultOptions = extendOptions(DEFAULT_OPTIONS, options);
var svgLoadCache = {};

addStyleToHead('img[onload=^"' + globalName + '("]{visibility:hidden;}');
addStyleToHead('img[onload^="' + globalName + '("]{visibility:hidden;}');

/**
* SVGInject
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.

2 changes: 1 addition & 1 deletion src/svg-inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
var defaultOptions = extendOptions(DEFAULT_OPTIONS, options);
var svgLoadCache = {};

addStyleToHead('img[onload=^"' + globalName + '("]{visibility:hidden;}');
addStyleToHead('img[onload^="' + globalName + '("]{visibility:hidden;}');

/**
* SVGInject
Expand Down
2 changes: 1 addition & 1 deletion test/js/svg-inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
var defaultOptions = extendOptions(DEFAULT_OPTIONS, options);
var svgLoadCache = {};

addStyleToHead('img[onload=^"' + globalName + '("]{visibility:hidden;}');
addStyleToHead('img[onload^="' + globalName + '("]{visibility:hidden;}');

/**
* SVGInject
Expand Down

0 comments on commit ab83b9b

Please sign in to comment.