MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / handle

Method handle

src/renderer/controller.ts:70–85  ·  view source on GitHub ↗
(identifier: Identifier, param: any)

Source from the content-addressed store, hash-verified

68 }
69
70 handle(identifier: Identifier, param: any) {
71 switch (identifier) {
72 case "notify":
73 this.notify(param);
74 break;
75 case "toast":
76 this.toast(param);
77 break;
78 case "translateInput":
79 bus.at("translateInput");
80 break;
81 default:
82 return false;
83 }
84 return true;
85 }
86
87 postSet(identifier: Identifier, value: any): boolean {
88 switch (identifier) {

Callers

nothing calls this directly

Calls 2

notifyMethod · 0.95
toastMethod · 0.95

Tested by

no test coverage detected