From 8a402d696b56702e86ac18a698ddcdd4450f38ee Mon Sep 17 00:00:00 2001 From: Alex Sexton Date: Sat, 23 Feb 2013 19:41:06 -0600 Subject: [PATCH] sharedworkers got messed up somewhere --- feature-detects/workers/sharedworkers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feature-detects/workers/sharedworkers.js b/feature-detects/workers/sharedworkers.js index 872e566a1c..28dd1260b2 100644 --- a/feature-detects/workers/sharedworkers.js +++ b/feature-detects/workers/sharedworkers.js @@ -1,3 +1,3 @@ -Modernizr.addTest('sharedworkers', function(){ - return !!window.SharedWorker; +define(['Modernizr'], function( Modernizr ) { + Modernizr.addTest('sharedworkers', !!window.SharedWorker); });