32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
+
+
|
console.log(e.data);
}
break;
case "textToTest":
case "fullTests":
case "getOptions":
case "getDefaultOptions":
case "resetOptions":
// send result to panel
browser.runtime.sendMessage(e.data);
browser.storage.local.set({"gc_options": result});
break;
case "setOptions":
case "setOption":
browser.storage.local.set({"gc_options": result});
break;
default:
console.log("Unknown command: " + sActionDone);
|
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
+
|
case "parseAndSpellcheck1":
case "getListOfTokens":
case "textToTest":
case "getOptions":
case "getDefaultOptions":
case "setOptions":
case "setOption":
case "resetOptions":
case "fullTests":
xGCEWorker.postMessage(oRequest);
break;
default:
console.log("[background] Unknown command: " + oRequest.sCommand);
}
//sendResponse({response: "response from background script"});
|