save: fixed ownership losing

This commit is contained in:
muerwre 2018-12-06 16:05:20 +07:00
parent 112fe9c6b7
commit b26073edef
7 changed files with 36 additions and 21 deletions

View file

@ -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('/');