gecko-dev/dom/workers/test/sharedWorker_privateBrowsin...

6 строки
87 B
JavaScript

var counter = 0;
onconnect = function(evt) {
evt.ports[0].postMessage(++counter);
}