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) {
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user