mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
save: fixed ownership losing
This commit is contained in:
parent
112fe9c6b7
commit
b26073edef
7 changed files with 36 additions and 21 deletions
|
@ -1,7 +1,10 @@
|
|||
import { history } from '$redux/store';
|
||||
|
||||
export const getPath = () => (window.location && window.location.pathname);
|
||||
export const pushPath = url => history.push(url);
|
||||
export const pushPath = url => {
|
||||
console.log('PUSHING', url);
|
||||
return history.push(url);
|
||||
};
|
||||
|
||||
export const getUrlData = (url = getPath()) => {
|
||||
const [, path, mode] = url.split('/');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue