1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00
This commit is contained in:
David Baker
2016-07-07 17:56:54 +01:00
parent 1896c0b62f
commit 3fd601bda4

View File

@@ -2801,7 +2801,7 @@ MatrixClient.prototype.register = function(username, password,
MatrixClient.prototype.requestRegisterEmailToken = function(email, clientSecret, MatrixClient.prototype.requestRegisterEmailToken = function(email, clientSecret,
sendAttempt, nextLink, callback) { sendAttempt, nextLink, callback) {
var id_server_url = url.parse(this.idBaseUrl); var id_server_url = url.parse(this.idBaseUrl);
if (id_server_url.host == null) { if (id_server_url.host === null) {
throw new Error("Invalid ID server URL: " + this.idBaseUrl); throw new Error("Invalid ID server URL: " + this.idBaseUrl);
} }