Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Commit

Permalink
move log
Browse files Browse the repository at this point in the history
fixes #2
  • Loading branch information
mcansh committed Oct 9, 2017
1 parent 5079301 commit a097d98
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ class Index extends React.Component {

const { type, downlink, rtt } = network;

console.log(
`MDN says navigator.connection.downlink is in mbps but it looks like its closer to MBps? Take a speedtest and compare and lemme know. I got ${downlink}, where in mbps thats ${downlink *
8}`,
);

const connections = [
{ type: 'wifi', name: 'WiFi' },
{ type: 'bluetooth', name: 'Bluetooth' },
Expand All @@ -47,6 +42,10 @@ class Index extends React.Component {
connectionSentence = 'You are not connected to the internet';
} else {
connectionSentence = `You are connected via ${connection.name}`;
console.log(
`MDN says navigator.connection.downlink is in mbps but it looks like its closer to MBps? Take a speedtest and compare and lemme know. I got ${downlink}, where in mbps thats ${downlink *
8}`,
);
}

const bandwidthSentence =
Expand Down

0 comments on commit a097d98

Please sign in to comment.