Skip to content

Commit

Permalink
shared workers test. fixes Modernizr#263
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 15, 2011
1 parent ddd167f commit 9499bd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions feature-detects/workers-sharedworkers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Modernizr.addTest('sharedworkers', function(){
return !!window.SharedWorker;
});
2 changes: 1 addition & 1 deletion modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ window.Modernizr = (function( window, document, undefined ) {
};


tests['webWorkers'] = function() {
tests['webworkers'] = function() {
return !!window.Worker;
};

Expand Down

0 comments on commit 9499bd7

Please sign in to comment.