im getting the above error. this is part of a chrome extension I made, but not sure how to fix this. Can someone pls help
if (showConnection) {
const speed = navigator.connection.downlink
const connection = navigator.onLine
? (speed === 10 ? '> ' + speed : '~' + speed) + ' Mbps'
: 'Offline'
status += connection
}