Skip to content

Commit

Permalink
workaround for gecko's media mutation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Jun 2, 2015
1 parent 5b90f55 commit 094318a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/bgset/ls.bgset.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
if(set.match(regSource)){
source.setAttribute(lazySizesConfig.srcsetAttr, RegExp.$1);
if(RegExp.$2){
source.setAttribute('media', RegExp.$2);
source.setAttribute('media', lazySizesConfig.customMedia[RegExp.$2] || RegExp.$2);
}
}
picture.appendChild(source);
Expand Down
2 changes: 1 addition & 1 deletion plugins/bgset/ls.bgset.min.js

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

0 comments on commit 094318a

Please sign in to comment.