term-number-wp.js 658 Bytes
function abc(msg)
{
  
        var msg1 = msg;

       
}

self.onmessage = function (e) {
    abc(e.data.value);
}

function launchMatchPixelWorkerProcess() {
      
    var worker = new Worker('match-pixel-wp.js');

    worker.onmessage = function (e) {
        var pixelLocation = e.data.msg;

        self.postMessage({ 'msg': pixelLocation });
    };
    worker.onerror = function (e) {
        alert('Error: Line ' + e.lineno + ' in ' + e.filename + ': ' + e.message);
    };

   
    worker.postMessage({
        'cmd': 'getLocationsForMatchedTermsInWholeBody',
        'value': 'msg from term-number-wp'
    });
}