Skip to content

Commit

Permalink
Merge pull request #8 from samgiles/master
Browse files Browse the repository at this point in the history
Include Headers, Response and Request objects on the global scope on the server.
  • Loading branch information
matthew-andrews committed Jan 19, 2015
2 parents 2a5b43e + afe4752 commit 458e4f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ var noConflictSelf = global.self;
global.self = {};
require('whatwg-fetch');
global.fetch = global.self.fetch;
global.Headers = global.self.Headers;
global.Request = global.self.Request;
global.Response = global.self.Response;
global.self = noConflictSelf;

0 comments on commit 458e4f6

Please sign in to comment.