editor: hotkeys added

This commit is contained in:
muerwre 2018-12-10 11:29:26 +07:00
parent d95f51bd3b
commit 25ae7f8282
9 changed files with 48 additions and 17 deletions

View file

@ -2,7 +2,6 @@ import { history } from '$redux/store';
export const getPath = () => (window.location && window.location.pathname);
export const pushPath = url => {
console.log('PUSHING', url);
return history.push(url);
};
@ -10,5 +9,7 @@ export const getUrlData = (url = getPath()) => {
const [, path, mode] = url.split('/');
const { host, hash } = window.location;
return { path, mode, host, hash };
return {
path, mode, host, hash
};
};