shorten this

This commit is contained in:
Bruno Windels 2021-03-23 13:36:42 +01:00
parent d5b12fa7f9
commit 76fdbbb2fe

View file

@ -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);
}