forked from mystiq/hydrogen-web
log endpoint hostname
This commit is contained in:
parent
f92f3b2c21
commit
d5b12fa7f9
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,12 @@ export class Pusher {
|
|||
}
|
||||
|
||||
async enable(hsApi, log) {
|
||||
try {
|
||||
let endpointDomain = new URL(this._description.data.endpoint).host;
|
||||
log.set("endpoint", endpointDomain);
|
||||
} catch {
|
||||
log.set("endpoint", null);
|
||||
}
|
||||
await hsApi.setPusher(this._description, {log}).response();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue