leap: redirect to notifications correctly

This commit is contained in:
Matilde Park 2020-11-03 15:52:35 -05:00
parent 83bdc143f7
commit 437757c584

View File

@ -117,7 +117,7 @@ export class Omnibox extends Component {
const { props } = this;
this.setState({ results: this.initialResults(), query: '' }, () => {
props.api.local.setOmnibox();
if (defaultApps.includes(app.toLowerCase()) || app === 'profile' || app === 'Links' || app === 'home') {
if (defaultApps.includes(app.toLowerCase()) || app === 'profile' || app === 'Links' || app === 'home' || app === 'inbox') {
props.history.push(link);
} else {
window.location.href = link;