From 7cc7910df63d19e7ebc67bb1156437f0559712d7 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sun, 21 Sep 2014 12:25:47 +0200 Subject: add foundation via bower --- .../modernizr/feature-detects/url-data-uri.js | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 source/bower_components/modernizr/feature-detects/url-data-uri.js (limited to 'source/bower_components/modernizr/feature-detects/url-data-uri.js') diff --git a/source/bower_components/modernizr/feature-detects/url-data-uri.js b/source/bower_components/modernizr/feature-detects/url-data-uri.js new file mode 100644 index 0000000..e6479a2 --- /dev/null +++ b/source/bower_components/modernizr/feature-detects/url-data-uri.js @@ -0,0 +1,26 @@ +// data uri test. +// https://github.com/Modernizr/Modernizr/issues/14 + +// This test is asynchronous. Watch out. + + +// in IE7 in HTTPS this can cause a Mixed Content security popup. +// github.com/Modernizr/Modernizr/issues/362 +// To avoid that you can create a new iframe and inject this.. perhaps.. + + +(function(){ + + var datauri = new Image(); + + + datauri.onerror = function() { + Modernizr.addTest('datauri', function () { return false; }); + }; + datauri.onload = function() { + Modernizr.addTest('datauri', function () { return (datauri.width == 1 && datauri.height == 1); }); + }; + + datauri.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="; + +})(); -- cgit v1.2.1