Sign in
webkit
/
WebKit
/
47b8206e2462d5a862fef65e142ae8764bd9b9e5
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
service-workers
/
service-worker
/
resources
/
claim-shared-worker-fetch-worker.js
blob: ddc8bea7af476e1ace023a693c31c463b7a077e5 [
file
] [
log
] [
blame
]
self
.
onconnect
=
(
event
)
=>
{
var
port
=
event
.
ports
[
0
];
event
.
ports
[
0
].
onmessage
=
(
evt
)
=>
{
fetch
(
evt
.
data
)
.
then
(
response
=>
response
.
text
())
.
then
(
text
=>
port
.
postMessage
(
text
));
};
};