Merge pull request #61 from hyperspacedev/desktop-search

Executive override before release PR
This commit is contained in:
Marquis Kurt 2019-05-24 17:34:48 -04:00 committed by GitHub
commit 0775cedbad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -307,4 +307,4 @@ app.on('activate', () => {
createWindow();
createMenubar();
}
});
});

View File

@ -21,7 +21,7 @@ import { Notification } from '../../types/Notification';
import {sendNotificationRequest} from '../../utilities/notifications';
import {withSnackbar} from 'notistack';
import { getConfig, getUserDefaultBool } from '../../utilities/settings';
import { isDarwinApp } from '../../utilities/desktop';
import { isDesktopApp, isDarwinApp } from '../../utilities/desktop';
import { Config } from '../../types/Config';
interface IAppLayoutState {
@ -153,7 +153,7 @@ export class AppLayout extends Component<any, IAppLayoutState> {
}
searchForQuery(what: string) {
window.location.href = "/#/search?query=" + what;
window.location.href = isDesktopApp? "hyperspace://hyperspace/app/index.html#/search?query=" + what: "/#/search?query=" + what;
window.location.reload;
}
@ -408,4 +408,4 @@ export class AppLayout extends Component<any, IAppLayoutState> {
}
}
export default withStyles(styles)(withSnackbar(AppLayout));
export default withStyles(styles)(withSnackbar(AppLayout));