1 addEventListener('message', function(e
) {
2 self
.postMessage(navigator
.connection
.type
+ ',' + navigator
.connection
.downlinkMax
);
5 navigator
.connection
.addEventListener('change', function() {
6 self
.postMessage(navigator
.connection
.type
+ ',' + navigator
.connection
.downlinkMax
);