INNER CODE UNIT · JavaScript
App
jippi/hashi-ui · frontend/src/components/app.js:23
class App extends Component {
constructor() {
super()
this.state = { width: window.innerWidth - 220 }
window.onresize = this.setW.bind(this)
}
setW() {
this.setState({
width: window.innerWidth - 220
})
}
changeToApp(e, app) {
// allow cmd/shift/ctrl key to open link in new tab without changing navigation in current page
if (
e.ctrlKey ||
e.shiftKey ||