Skip to content

Commit

Permalink
use prefixed for bloburls to support window.webkitURL in safari 6
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkettner committed Mar 4, 2015
1 parent 0c35733 commit 1a9a45c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions feature-detects/url/bloburls.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
/* DOC
Detects support for creating Blob URLs
*/
define(['Modernizr'], function( Modernizr ) {
Modernizr.addTest('bloburls', 'URL' in window && 'revokeObjectURL' in URL && 'createObjectURL' in URL);
define(['Modernizr', 'prefixed'], function( Modernizr, prefixed ) {
var url = prefixed('URL', window, false);
url = url && window[url];
Modernizr.addTest('bloburls', url && 'revokeObjectURL' in url && 'createObjectURL' in url);
});

0 comments on commit 1a9a45c

Please sign in to comment.