Grammalecte  Artifact [67f47c2618]

Artifact 67f47c26185b95e76bb16b96ed13459a99809eb8cddc3d61e1d118bbbd486e35:


// Background 

"use strict";

let xGCEWorker = new Worker("gce_worker.js");

function handleMessage (oRequest, xSender, sendResponse) {
  console.log(`[background] received: ${oRequest.content}`);
  sendResponse({response: "response from background script"});
}

browser.runtime.onMessage.addListener(handleMessage);