Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / netinfo / resources / web-worker.js
blobee7656db62f67081cde49f17669a504d71159a7c
1 addEventListener('message', function(e) {
2 self.postMessage(navigator.connection.type + ',' + navigator.connection.downlinkMax);
3 }, false);
5 navigator.connection.addEventListener('change', function() {
6 self.postMessage(navigator.connection.type + ',' + navigator.connection.downlinkMax);
7 }, false);