Commit 28785568 authored by Tristan Cavelier's avatar Tristan Cavelier

Node js compatibility if statement removed

JIO uses Blob and more HTML5 features which are not implemented in Nodejs.
parent 04b156fa
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
return define(dependencies, module); return define(dependencies, module);
} }
if (typeof exports === 'object') {
return module(exports, require('rsvp'), require('sha256'));
}
window.jIO = {}; window.jIO = {};
module(window.jIO, RSVP, {hex_sha256: hex_sha256}); module(window.jIO, RSVP, {hex_sha256: hex_sha256});
}(['exports', 'rsvp', 'sha256'], function (exports, RSVP, sha256) { }(['exports', 'rsvp', 'sha256'], function (exports, RSVP, sha256) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment