forked from mystiq/hydrogen-web
shorten this
This commit is contained in:
parent
d5b12fa7f9
commit
76fdbbb2fe
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue