Skip to content

Commit 354f853

Browse files
committed
Check for RTT to avoid needless console errors in non-Blink
1 parent b569e47 commit 354f853

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_layouts/default.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@
8080

8181
<script>
8282
(() => {
83-
const rtt = navigator.connection.rtt;
84-
LUX.addData('rtt', rtt);
83+
if ('connection.rtt' in navigator) {
84+
const rtt = navigator.connection.rtt;
85+
LUX.addData('rtt', rtt);
86+
}
8587
})();
8688
</script>
8789

0 commit comments

Comments
 (0)