MCPcopy
hub / github.com/skevy/graphiql-app / handleElectronMenuOption

Function handleElectronMenuOption

app/components/App.js:50–71  ·  view source on GitHub ↗
(option)

Source from the content-addressed store, hash-verified

48 }
49
50 handleElectronMenuOption(option) {
51 switch (option) {
52 case 'NEW_TAB':
53 this.createNewTab();
54 break;
55 case 'CLOSE_TAB':
56 this.closeCurrentTab();
57 break;
58 case 'NEXT_TAB':
59 this.gotoNextTab();
60 break;
61 case 'PREVIOUS_TAB':
62 this.gotoPreviousTab();
63 break;
64 case 'EXPORT_QUERY':
65 this.exportQuery();
66 break;
67 default:
68 console.error("No idea how to handle '" + option + "'");
69 break;
70 }
71 }
72
73 createNewTab() {
74 const currentTab = this.getCurrentTab();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected