use correct address API

This commit is contained in:
David Reed 2022-11-19 19:02:17 -05:00
parent d8f4fecca7
commit 1700d17e09
No known key found for this signature in database
GPG key ID: 2211691D8A1EE72F

View file

@ -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();