File gc_lang/fr/webext/background.js artifact 7ec98c3680 part of check-in b4a1b21d88
// 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);