Skip to content

Commit

Permalink
detect applicationCache
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Lehnardt authored and paulirish committed Nov 4, 2009
1 parent 959ba2d commit bb3d302
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ window.Modernizr = (function(){
canPlayType = 'canPlayType',
localStorage = 'localStorage',
webWorkers = 'webWorkers',

offline = 'offline',

tests = {},
inputs = {},

Expand Down Expand Up @@ -419,6 +420,10 @@ window.Modernizr = (function(){
return typeof window.Worker != 'undefined';
};

tests[offline] = function() {
return (typeof window.applicationCache != 'undefined');
};


// Run through all tests and detect their support in the current UA.
for ( feature in tests ) {
Expand Down

0 comments on commit bb3d302

Please sign in to comment.