Skip to content
This repository was archived by the owner on Jun 6, 2019. It is now read-only.

Commit a933e52

Browse files
committed
Copy over static methods
Fixes #4
1 parent bd26fad commit a933e52

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

url.js

+13
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,19 @@
560560
}
561561
};
562562

563+
// Copy over the static methods
564+
var OriginalURL = scope.URL;
565+
if (OriginalURL) {
566+
jURL.createObjectURL = function(blob) {
567+
// IE extension allows a second optional options argument.
568+
// http://msdn.microsoft.com/en-us/library/ie/hh772302(v=vs.85).aspx
569+
return OriginalURL.createObjectURL.apply(OriginalURL, arguments);
570+
};
571+
jURL.revokeObjectURL = function(url) {
572+
OriginalURL.revokeObjectURL(url);
573+
};
574+
}
575+
563576
scope.URL = jURL;
564577

565578
})(window);

0 commit comments

Comments
 (0)