bareClient

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

View file

@ -44,7 +44,7 @@ class UVServiceWorker extends EventEmitter {
/**
* @type {InstanceType<Ultraviolet['BareClient']>}
*/
this.client = new Ultraviolet.BareClient(this.address);
this.bareClient = new Ultraviolet.BareClient(this.address);
this.browser = Ultraviolet.Bowser.getParser(
self.navigator.userAgent
).getBrowserName();
@ -132,7 +132,7 @@ class UVServiceWorker extends EventEmitter {
if (reqEvent.intercepted) return reqEvent.returnValue;
const response = await this.client.fetch(
const response = await this.bareClient.fetch(
requestCtx.blob
? 'blob:' + location.origin + requestCtx.url.pathname
: requestCtx.url,
@ -219,7 +219,7 @@ class UVServiceWorker extends EventEmitter {
this.config.handler,
this.config.bundle,
this.config.config,
this.client.data,
this.bareClient.data,
ultraviolet.cookie.serialize(
cookies,
ultraviolet.meta,