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

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix renaming of static methods
  • Loading branch information
TimvdLippe committed Jan 31, 2019
1 parent d03ece9 commit 51c0a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions url.js
Expand Up @@ -619,12 +619,12 @@ Window.prototype.forceJURL = false;
// Copy over the static methods
var OriginalURL = scope.URL;
if (OriginalURL) {
jURL.createObjectURL = function(blob) {
jURL['createObjectURL'] = function(blob) {
// IE extension allows a second optional options argument.
// http://msdn.microsoft.com/en-us/library/ie/hh772302(v=vs.85).aspx
return OriginalURL.createObjectURL.apply(OriginalURL, arguments);
};
jURL.revokeObjectURL = function(url) {
jURL['revokeObjectURL'] = function(url) {
OriginalURL.revokeObjectURL(url);
};
}
Expand Down

0 comments on commit 51c0a66

Please sign in to comment.