Sign in
webkit
/
WebKit
/
8080f6fee45a125d4786642fbf1a845df358d5c0
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
workers
/
non-automated
/
navigator-onLine.js
blob: 592b286bb35261c75f79cd395012e7e894053719 [
file
] [
log
] [
blame
]
if
(
'onmessage'
in self
)
{
// dedicated worker
onmessage
=
function
(
e
)
{
postMessage
(
navigator
.
onLine
);
}
}
else
{
// shared worker
onconnect
=
function
(
e
)
{
e
.
ports
[
0
].
onmessage
=
function
(
e
)
{
this
.
postMessage
(
navigator
.
onLine
);
}
}
}