diff options
author | Marian Oancea <contact@siteshop.ro> | 2014-11-07 04:51:37 +0800 |
---|---|---|
committer | Marian Oancea <contact@siteshop.ro> | 2014-11-07 04:51:37 +0800 |
commit | 3270b432bcb007944e3b6e17329b062cb6b7da78 (patch) | |
tree | 197238043b4e4e7e5b20c2d985961e863fe52a92 /lib/httprpc.js | |
parent | bd14b4d23e5eaaf5359b73a2744727df5624ab97 (diff) | |
download | go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar.gz go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar.bz2 go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar.lz go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar.xz go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.tar.zst go-tangerine-3270b432bcb007944e3b6e17329b062cb6b7da78.zip |
Refactoring
Removed browser fixes
Updated gulp to bypass native browser objects
Added source map for dist
Diffstat (limited to 'lib/httprpc.js')
-rw-r--r-- | lib/httprpc.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/httprpc.js b/lib/httprpc.js index 1968caa98..c1ee0f02a 100644 --- a/lib/httprpc.js +++ b/lib/httprpc.js @@ -21,8 +21,9 @@ * @date 2014 */ - -var XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; // jshint ignore:line +if(process.env.NODE_ENV !== "build") { + var XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; // jshint ignore:line +} var HttpRpcProvider = function (host) { |