use correct address API
This commit is contained in:
parent
d8f4fecca7
commit
1700d17e09
1 changed files with 1 additions and 3 deletions
|
|
@ -44,9 +44,7 @@ class UVServiceWorker extends EventEmitter {
|
||||||
/**
|
/**
|
||||||
* @type {InstanceType<Ultraviolet['BareClient']>}
|
* @type {InstanceType<Ultraviolet['BareClient']>}
|
||||||
*/
|
*/
|
||||||
this.client = new Ultraviolet.BareClient(
|
this.client = new Ultraviolet.BareClient(this.address);
|
||||||
new URL(this.config.bare, location.toString())
|
|
||||||
);
|
|
||||||
this.browser = Ultraviolet.Bowser.getParser(
|
this.browser = Ultraviolet.Bowser.getParser(
|
||||||
self.navigator.userAgent
|
self.navigator.userAgent
|
||||||
).getBrowserName();
|
).getBrowserName();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue