Skip to content

Commit

Permalink
Improve window opening command
Browse files Browse the repository at this point in the history
  • Loading branch information
hacklover committed Oct 2, 2020
1 parent a703df9 commit 4424684
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/commands.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
export default ({ store }) => {
return {
'todo': function () {
store.dispatch('core/windows/windowOpen', {
name: 'WindowTodo',
index: 0
});
store.dispatch('core/windows/windowOpen', 'WindowTodo');
},
}
}

0 comments on commit 4424684

Please sign in to comment.