summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/navigator_languages_worker.js
blob: 22ece09ef2bd3a72fbbbdba9391010800292be8c (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);
  }
};