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

5 строки
87 B
JavaScript

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