Skip to content
Browse files

shared workers test. fixes #263

  • Loading branch information...
1 parent 1169775 commit a997173479ee50bf6743b4682c18768ef0b850cc @paulirish paulirish committed May 15, 2011
Showing with 4 additions and 1 deletion.
  1. +3 −0 feature-detects/workers-sharedworkers.js
  2. +1 −1 modernizr.js
View
3 feature-detects/workers-sharedworkers.js
@@ -0,0 +1,3 @@
+Modernizr.addTest('sharedworkers', function(){
+ return !!window.SharedWorker;
+});
View
2 modernizr.js
@@ -724,7 +724,7 @@ window.Modernizr = (function( window, document, undefined ) {
};
- tests['webWorkers'] = function() {
+ tests['webworkers'] = function() {
return !!window.Worker;
};

0 comments on commit a997173

Please sign in to comment.
Something went wrong with that request. Please try again.