This commit is contained in:
David Baker
2016-07-07 17:56:54 +01:00
parent 1896c0b62f
commit 3fd601bda4
+1 -1
View File
@@ -2801,7 +2801,7 @@ MatrixClient.prototype.register = function(username, password,
MatrixClient.prototype.requestRegisterEmailToken = function(email, clientSecret,
sendAttempt, nextLink, callback) {
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);
}