Sign in
chromium
/
chromium
/
src
/
43ae92a14fee8271f1c878b2615ec5728d07cd48
/
.
/
third_party
/
WebKit
/
LayoutTests
/
external
/
wpt
/
service-workers
/
service-worker
/
resources
/
foreign-fetch-helper-worker.js
blob: ce596044bd15a3df160dc1153a59d20675317c11 [
file
] [
log
] [
blame
]
importScripts
(
'/common/get-host-info.sub.js'
);
const
host_info
=
get_host_info
();
self
.
onfetch
=
e
=>
{
const
remote_url
=
host_info
.
HTTPS_REMOTE_ORIGIN
+
new
URL
(
'./'
,
location
).
pathname
+
'simple.txt?basic_sw'
;
e
.
respondWith
(
fetch
(
remote_url
));
};