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