ethers.js/providers/browser-xmlhttprequest.js

9 lines
193 B
JavaScript
Raw Normal View History

2017-02-25 09:23:48 +03:00
'use strict';
try {
module.exports.XMLHttpRequest = XMLHttpRequest;
} catch(error) {
console.log('Warning: XMLHttpRequest is not defined');
module.exports.XMLHttpRequest = null;
}