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']>}
|
||||
*/
|
||||
this.client = new Ultraviolet.BareClient(
|
||||
new URL(this.config.bare, location.toString())
|
||||
);
|
||||
this.client = new Ultraviolet.BareClient(this.address);
|
||||
this.browser = Ultraviolet.Bowser.getParser(
|
||||
self.navigator.userAgent
|
||||
).getBrowserName();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue