Added SSL cert fix

This commit is contained in:
hydrabolt
2015-10-01 17:05:19 +01:00
parent 8d69e769f6
commit 1b67678d44
2 changed files with 2 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ var Client = (function () {
self.token = res.body.token; //set our token
self.getGateway().then(function (url) {
self.createws(url);
self.createws(url.replace("discord.gg", "discordapp.net"));
callback(null, self.token);
resolve(self.token);
})["catch"](function (err) {

View File

@@ -168,7 +168,7 @@ class Client {
self.token = res.body.token; //set our token
self.getGateway().then(function (url) {
self.createws(url);
self.createws(url.replace("discord.gg", "discordapp.net"));
callback(null, self.token);
resolve(self.token);
}).catch(function (err) {