save: public switch

This commit is contained in:
muerwre 2018-12-18 12:19:02 +07:00
parent a1bb4da475
commit 69f23c9e48
6 changed files with 83 additions and 10 deletions

View file

@ -6,10 +6,10 @@ export const replacePath = url => history.replace(url);
export const getUrlData = (url = getPath()) => {
const [, path, mode] = url.split('/');
const { host, hash } = window.location;
const { host, hash, protocol } = window.location;
return {
path, mode, host, hash
path, mode, host, hash, protocol,
};
};