Fixed most of TypeScript errors for TS 3.1.2
This commit is contained in:
@ -23,10 +23,12 @@ export default class Analytics {
|
||||
}
|
||||
|
||||
if("connection" in navigator) {
|
||||
let connection = navigator["connection"] as any
|
||||
|
||||
analytics.connection = {
|
||||
downLink: navigator["connection"].downlink,
|
||||
roundTripTime: navigator["connection"].rtt,
|
||||
effectiveType: navigator["connection"].effectiveType
|
||||
downLink: connection.downlink,
|
||||
roundTripTime: connection.rtt,
|
||||
effectiveType: connection.effectiveType
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user