Skip to content

Commit

Permalink
fixes bug strues#270
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Gerer committed Jan 25, 2017
1 parent 64f4b59 commit edbcbfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/retina.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/retina.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ function retina(images) {
* If this environment has `window`, activate the plugin.
*/
if (hasWindow) {
window.addEventListener('load', retina);
window.addEventListener('load', function(){ retina() });
window.retinajs = retina;
}

Expand Down

0 comments on commit edbcbfc

Please sign in to comment.