mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
0a8ff0ad85
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D35951 --HG-- extra : source : 62f3501af4bc1c0bd1ee1977a28aee04706a6663
11 lines
189 B
JavaScript
11 lines
189 B
JavaScript
onmessage = function() {
|
|
var counter = 0;
|
|
var id = setInterval(function() {
|
|
++counter;
|
|
if (counter == 2) {
|
|
clearInterval(id);
|
|
postMessage("done");
|
|
}
|
|
}, 0);
|
|
};
|