diff --git a/src/matrix/push/Pusher.js b/src/matrix/push/Pusher.js index e12db164..cc370f82 100644 --- a/src/matrix/push/Pusher.js +++ b/src/matrix/push/Pusher.js @@ -22,8 +22,7 @@ export class Pusher { async enable(hsApi, log) { try { - let endpointDomain = new URL(this._description.data.endpoint).host; - log.set("endpoint", endpointDomain); + log.set("endpoint", new URL(this._description.data.endpoint).host); } catch { log.set("endpoint", null); }