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) { async enable(hsApi, log) {
try { try {
let endpointDomain = new URL(this._description.data.endpoint).host; log.set("endpoint", new URL(this._description.data.endpoint).host);
log.set("endpoint", endpointDomain);
} catch { } catch {
log.set("endpoint", null); log.set("endpoint", null);
} }