summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/navigator_languages_worker.js
blob: 53aa4d39ebc49ac7706aa46723c96b70932608f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
var active = true;
onmessage = function(e) {
  if (e.data == 'finish') {
    active = false;
    return;
  }

  if (active) {
    postMessage(navigator.languages);
  }
}