blob: f820d58b394b0cfe38704cf0d615855be7e53faf [file] [log] [blame]
<html>
<head>
<script>
window.addEventListener("online", () => console.log("online event: online = " + navigator.onLine), false);
window.addEventListener("offline", () => console.log("offline event: online = " + navigator.onLine), false);
navigator.connection.onchange = () => console.log("connection change event: type = " + navigator.connection.type + "; downlinkMax = " + navigator.connection.downlinkMax);
</script>
</head>
<body>
</body>
</html>