Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
set alwaysCheckWDescriptor flag into feature detect
Browse files Browse the repository at this point in the history
  • Loading branch information
aFarkas committed Oct 18, 2015
1 parent f3e334d commit 0e32453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/picturefill.js
Expand Up @@ -917,6 +917,8 @@
pf.supSizes = true;
}

alwaysCheckWDescriptor = pf.supSrcset && !pf.supSizes;

isSupportTestReady = true;
// force async
setTimeout(picturefill);
Expand Down Expand Up @@ -949,8 +951,6 @@
// container of supported mime types that one might need to qualify before using
pf.types = types;

alwaysCheckWDescriptor = pf.supSrcset && !pf.supSizes;

pf.setSize = noop;

/**
Expand Down

0 comments on commit 0e32453

Please sign in to comment.