Skip to content

Commit

Permalink
Handle cases where self isn't defined
Browse files Browse the repository at this point in the history
  • Loading branch information
billinghamj committed Jan 18, 2016
1 parent 133bd73 commit ad009dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fetch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function() {
(function(self) {
'use strict';

if (self.fetch) {
Expand Down Expand Up @@ -378,4 +378,4 @@
})
}
self.fetch.polyfill = true
})();
})(typeof self !== 'undefined' ? self : this);

0 comments on commit ad009dc

Please sign in to comment.