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

Hotfix for React Native #164

Merged
merged 1 commit into from
Jan 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/utils/makeRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ function xmlHttpRequest() {
if (typeof XMLHttpRequest !== 'undefined') {
return new XMLHttpRequest();
}

pretendingNotToRequire = require;
var module = 'xmlhttprequest';
var request = require(module).XMLHttpRequest;
var request = pretendingNotToRequire(module).XMLHttpRequest;
return new request();
}

Expand Down