mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-18 06:28:40 -09:00
Remove unused blur/focus (#947)
This commit is contained in:
parent
6d91ab48d6
commit
265024cb45
1 changed files with 2 additions and 13 deletions
|
|
@ -101,21 +101,10 @@ export const userExitSession = createExitAction(SESSION_USER_EXIT);
|
||||||
export const ptyExitSession = createExitAction(SESSION_PTY_EXIT);
|
export const ptyExitSession = createExitAction(SESSION_PTY_EXIT);
|
||||||
|
|
||||||
export function setActiveSession(uid) {
|
export function setActiveSession(uid) {
|
||||||
return (dispatch, getState) => {
|
return dispatch => {
|
||||||
const state = getState();
|
|
||||||
const prevUid = state.sessions.activeUid;
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: SESSION_SET_ACTIVE,
|
type: SESSION_SET_ACTIVE,
|
||||||
uid,
|
uid
|
||||||
effect() {
|
|
||||||
// This goes away when we are able to poll
|
|
||||||
// for the title ourseleves, instead of relying
|
|
||||||
// on Session and focus/blur to subscribe
|
|
||||||
if (prevUid) {
|
|
||||||
rpc.emit('blur', {uid: prevUid});
|
|
||||||
}
|
|
||||||
rpc.emit('focus', {uid});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue