gecko/dom/workers/test/navigator_languages_worker.js

12 lines
170 B
JavaScript
Raw Normal View History

var active = true;
onmessage = function(e) {
if (e.data == 'finish') {
active = false;
return;
}
if (active) {
postMessage(navigator.languages);
}
}