mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
editor: hotkeys added
This commit is contained in:
parent
d95f51bd3b
commit
25ae7f8282
9 changed files with 48 additions and 17 deletions
|
@ -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
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue