Permalink
Browse files

remove IE6 error in cors test

  • Loading branch information...
1 parent 2c8ddad commit 18deb4130df39143ac40857e0cbc3b94a8da53df @aFarkas aFarkas committed Aug 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 feature-detects/cors.js
@@ -1,3 +1,3 @@
// cors
// By Theodoor van Donge
-Modernizr.addTest('cors', 'withCredentials' in new XMLHttpRequest());
+Modernizr.addTest('cors', !!(window.XMLHttpRequest && 'withCredentials' in new XMLHttpRequest()));

0 comments on commit 18deb41

Please sign in to comment.