mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-20 01:01:39 +01:00
shorten this
This commit is contained in:
parent
d5b12fa7f9
commit
76fdbbb2fe
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user