remove requestCtx.forward
This commit is contained in:
parent
17c5b6b7b7
commit
edb339b137
1 changed files with 0 additions and 10 deletions
10
src/uv.sw.js
10
src/uv.sw.js
|
|
@ -114,16 +114,6 @@ class UVServiceWorker extends EventEmitter {
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
if (
|
|
||||||
this.browser === 'Firefox' &&
|
|
||||||
!(
|
|
||||||
request.destination === 'iframe' ||
|
|
||||||
request.destination === 'document'
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
requestCtx.forward.shift();
|
|
||||||
}
|
|
||||||
|
|
||||||
requestCtx.headers['user-agent'] = navigator.userAgent;
|
requestCtx.headers['user-agent'] = navigator.userAgent;
|
||||||
|
|
||||||
if (cookieStr) requestCtx.headers.cookie = cookieStr;
|
if (cookieStr) requestCtx.headers.cookie = cookieStr;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue