diff --git a/feature-detects/workers-sharedworkers.js b/feature-detects/workers-sharedworkers.js new file mode 100644 index 0000000000..a9d78eb326 --- /dev/null +++ b/feature-detects/workers-sharedworkers.js @@ -0,0 +1,3 @@ +Modernizr.addTest('sharedworkers', function(){ + return !!window.SharedWorker; +}); \ No newline at end of file diff --git a/modernizr.js b/modernizr.js index 960ca325cd..3aed9b0f26 100644 --- a/modernizr.js +++ b/modernizr.js @@ -724,7 +724,7 @@ window.Modernizr = (function( window, document, undefined ) { }; - tests['webWorkers'] = function() { + tests['webworkers'] = function() { return !!window.Worker; };