Sign in
nest-open-source
/
manifest_repos
/
chromium_src
/
1389d67935ffbffe8a70c1fa06867f6cf7ecf464
/
.
/
chromium
/
src
/
third_party
/
blink
/
web_tests
/
external
/
wpt
/
web-locks
/
resources
/
service-worker.js
blob: 027863e33e0457449173e82bc942c3ae22764eee [
file
] [
log
] [
blame
]
// Responds to '/clientId' with the request's clientId.
self
.
addEventListener
(
'fetch'
,
e
=>
{
if
(
new
URL
(
e
.
request
.
url
).
pathname
===
'/clientId'
)
{
e
.
respondWith
(
new
Response
(
JSON
.
stringify
({
clientId
:
e
.
clientId
})));
return
;
}
});