Skip to content

Commit

Permalink
use 'SESSION_SET_CWD' action
Browse files Browse the repository at this point in the history
  • Loading branch information
hharnisc authored and Harrison Harnisch committed Jul 26, 2016
1 parent 4e55fe2 commit cc3e712
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const setCwd = (pid) =>
} else {
cwd = cwd.trim();
store.dispatch({
type: 'UPDATE_CWD',
type: 'SESSION_SET_CWD',
cwd
});
}
Expand Down Expand Up @@ -39,11 +39,3 @@ exports.middleware = (store) => (next) => (action) => {
}
next(action);
};

exports.reduceUI = (state, action) => {
switch (action.type) {
case 'UPDATE_CWD':
return state.set('cwd', action.cwd);
}
return state;
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hypercwd",
"version": "0.1.3",
"version": "0.1.4",
"description": "Open a HyperTerm tab with the same directory as the current tab",
"main": "index.js",
"keywords": [
Expand Down

0 comments on commit cc3e712

Please sign in to comment.