| OLD | NEW |
| 1 addEventListener('message', function(e) { | 1 addEventListener('message', function(e) { |
| 2 self.postMessage(navigator.connection.type + ',' + navigator.connection.down
linkMax); | 2 self.postMessage(navigator.connection.type + ',' + navigator.connection.down
linkMax + ',' + navigator.connection.effectiveType + ',' + navigator.connection.
rtt + ',' + navigator.connection.downlink); |
| 3 }, false); | 3 }, false); |
| 4 | 4 |
| 5 navigator.connection.addEventListener('change', function() { | 5 navigator.connection.addEventListener('change', function() { |
| 6 self.postMessage(navigator.connection.type + ',' + navigator.connection.down
linkMax); | 6 self.postMessage(navigator.connection.type + ',' + navigator.connection.down
linkMax + ',' + navigator.connection.effectiveType + ',' + navigator.connection.
rtt + ',' + navigator.connection.downlink); |
| 7 }, false); | 7 }, false); |
| OLD | NEW |