From 76fdbbb2fea29670fc3c85442f2417ced9cd995a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 23 Mar 2021 13:36:42 +0100 Subject: [PATCH] shorten this --- src/matrix/push/Pusher.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }