Skip to content

Commit

Permalink
fixing unhandled empty <style> elements - closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Jan 31, 2014
1 parent 50f3368 commit 48cb0b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion viewport-units-buggyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
function findProperties() {
declarations = [];
forEach.call(document.styleSheets, function(sheet) {
if (sheet.ownerNode.id !== 'patched-viewport') {
if (sheet.ownerNode.id !== 'patched-viewport' && sheet.cssRules) {
forEach.call(sheet.cssRules, findDeclarations);
}
});
Expand Down

0 comments on commit 48cb0b5

Please sign in to comment.