(option)
| 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(); |
nothing calls this directly
no outgoing calls
no test coverage detected