Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Cross-Origin Adjustments. #46

Merged
merged 1 commit into from
Feb 19, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Adjusting for Firefox bug with sheet.cssRules. Added note about cross…
…-origin stylesheets.
  • Loading branch information
DaphneDormanOldAccount committed Feb 17, 2012
commit 0165ef9bc573f220d33566990b6a2f0748f1dd88
4 changes: 2 additions & 2 deletions prefixfree.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}
}
Expand Down