Merge pull request #61 from hyperspacedev/desktop-search
Executive override before release PR
This commit is contained in:
commit
0775cedbad
|
@ -307,4 +307,4 @@ app.on('activate', () => {
|
|||
createWindow();
|
||||
createMenubar();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue