diff --git a/fetch.js b/fetch.js index e91a45b55c053dd067dc65381ce2b6fae596995f..fca2c3c848ab1337cc1c796e04f6b77d8b00fdec 100644 --- a/fetch.js +++ b/fetch.js @@ -1,7 +1,7 @@ -(function(global) { +(function() { 'use strict'; - if (global.fetch) { + if (self.fetch) { return } @@ -203,7 +203,7 @@ Body.call(Response.prototype) - global.fetch = function (url, options) { + self.fetch = function (url, options) { return new Request(url, options).fetch() } -})(this); +})();