diff --git a/client/client.js b/client/client.js index 8a93026..7330ae7 100644 --- a/client/client.js +++ b/client/client.js @@ -1,3 +1,7 @@ +if (typeof GombotCrypto === 'undefined') { + var GombotCrypto = require('./crypto.js'); +} + ;(function() { GombotClient = function(host, port) { @@ -7,10 +11,6 @@ GombotClient = function(host, port) { var xhr = typeof jQuery !== 'undefined' ? jQuery.ajax : require('xhrequest'); -if (typeof GombotCrypto === 'undefined') { - var GombotCrypto = require('./crypto.js'); -} - function request(args, cb) { var url = args.scheme ? args.scheme : 'http'; var method = args.method.toUpperCase();