mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-11 02:56:06 +00:00
11 lines
188 B
JavaScript
11 lines
188 B
JavaScript
onmessage = function() {
|
|
var counter = 0;
|
|
var id = setInterval(function() {
|
|
++counter;
|
|
if (counter == 2) {
|
|
clearInterval(id);
|
|
postMessage('done');
|
|
}
|
|
}, 0);
|
|
}
|