Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #3 from uport-project/feature/meteor-support
Browse files Browse the repository at this point in the history
add meteor support for xmlhttprequest
  • Loading branch information
pelle authored Feb 15, 2017
2 parents 1b77c3f + c0fc8d3 commit e25ad30
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"xmlhttprequest": "^1.8.0"
},
"browser": {
"xmlhttprequest": false,
"./src/lib/XMLHttpRequest.js": "./src/lib/XMLHttpRequest-browser.js",
"./lib/lib/XMLHttpRequest.js": "./lib/lib/XMLHttpRequest-browser.js"
"xmlhttprequest": false
},
"jest": {
"coverageDirectory": "./coverage/",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var BASE58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
var base58 = require('base-x-bytearray')(BASE58)
var hex = require('base-x-bytearray')('0123456789abcdef')

const XMLHttpRequest = require('./lib/XMLHttpRequest')
const XMLHttpRequest = window.XMLHttpRequest || require('xmlhttprequest').XMLHttpRequest

const getAttributesData = '0x446d5aa4000000000000000000000000'
function http (opts, callback) {
Expand Down Expand Up @@ -84,4 +84,4 @@ function UportLite (opts = {}) {
return getAttributes
}

module.exports = UportLite
module.exports = UportLite
3 changes: 0 additions & 3 deletions src/lib/XMLHttpRequest-browser.js

This file was deleted.

3 changes: 0 additions & 3 deletions src/lib/XMLHttpRequest.js

This file was deleted.

0 comments on commit e25ad30

Please sign in to comment.