()
| 15 | |
| 16 | export default class App extends React.Component { |
| 17 | constructor() { |
| 18 | super(); |
| 19 | |
| 20 | const storage = window.localStorage; |
| 21 | |
| 22 | this.state = { |
| 23 | headerEditOpen: false, |
| 24 | currentTabIndex: storage.getItem('currentTabIndex') ? parseInt(storage.getItem('currentTabIndex')) : 0, |
| 25 | tabs: storage.getItem('tabs') ? JSON.parse(storage.getItem('tabs')) : [ |
| 26 | { |
| 27 | name: null, |
| 28 | headers: {}, |
| 29 | endpoint: '', |
| 30 | method: 'post' |
| 31 | } |
| 32 | ] |
| 33 | }; |
| 34 | } |
| 35 | |
| 36 | componentDidMount() { |
| 37 | Mousetrap.bindGlobal('command+shift+]', (e) => { |
nothing calls this directly
no outgoing calls
no test coverage detected