Grammalecte  Artifact [7ec98c3680]

Artifact 7ec98c36808bd8e3557297059f7af1aeb4314db456cdfa5ca0ea72d60ed73692:


// Background 

"use strict";

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

xGCEWorker.postMessage(["init", browser.extension.getURL(".")]);

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

browser.runtime.onMessage.addListener(handleMessage);