Permalink
Browse files

Merge pull request #46 from MacNimble/master

Cross-Origin Adjustments.
  • Loading branch information...
2 parents 15acada + 0165ef9 commit 08849d7bc221a0b261dd99eabd0e544c1ca89d81 @LeaVerou committed Feb 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 prefixfree.js
View
@@ -3,7 +3,7 @@
* @author Lea Verou
* MIT license
*/
-
+// See enable-cors.org to enable cross-origin stylesheets (for origins/domains you control).
(function(){
if(!window.addEventListener) {
@@ -14,7 +14,7 @@ var self = window.StyleFix = {
link: function(link) {
try {
// Ignore stylesheets with data-noprefix attribute as well as alternate stylesheets
- if(link.rel !== 'stylesheet' || !link.sheet.cssRules || link.hasAttribute('data-noprefix')) {
+ if(link.rel !== 'stylesheet' || link.hasAttribute('data-noprefix')) {
return;
}
}

0 comments on commit 08849d7

Please sign in to comment.