fixed duplicated queryIndexer & fixed bad schema for ipcInvoke in windowNavbar

This commit is contained in:
srgooglo 2020-10-12 12:07:09 +02:00
parent bbfe6f31cf
commit c9aa8ad4f8
2 changed files with 7 additions and 26 deletions

View File

@ -8,13 +8,17 @@ export default class WindowNavbar extends React.Component{
handleMinimize(){
this.props.dispatch({
type: "app/ipcInvoke",
payload: "minimize-window"
payload: {
key: "minimize-window"
}
})
}
handleClose(){
this.props.dispatch({
type: "app/ipcInvoke",
payload: "hide-window"
payload: {
key: "hide-window"
}
})
}
render(){

View File

@ -95,7 +95,7 @@ export default {
window.PluginGlobals = []
window.Internal = []
queryIndexer([
{
match: '/s;:id',
@ -117,29 +117,6 @@ export default {
window.location = callback
})
queryIndexer([
{
match: '/s;:id',
to: `/settings?key=:id`,
},
{
match: '/h;:id',
to: `/hashtag?key=:id`,
},
{
match: '/p;:id',
to: `/post?key=:id`,
},
{
match: '/@:id',
to: `/@/:id`,
}
], (callback) => {
window.location = callback
})
if (!service) {
}