Skip to content

Commit

Permalink
Merge pull request #48 from vincent-aubert/patch-2
Browse files Browse the repository at this point in the history
fixing CORS import to respect `data-viewport-units-buggyfill="ignore"`
  • Loading branch information
rodneyrehm committed Apr 21, 2015
2 parents f6c0635 + 1fe5154 commit 07efd00
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 @@ -365,7 +365,7 @@
};

forEach.call(document.styleSheets, function(sheet) {
if (!sheet.href || origin(sheet.href) === origin(location.href)) {
if (!sheet.href || origin(sheet.href) === origin(location.href) || sheet.ownerNode.getAttribute('data-viewport-units-buggyfill') === 'ignore') {
// skip <style> and <link> from same origin
return;
}
Expand Down

0 comments on commit 07efd00

Please sign in to comment.