mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
save: public switch
This commit is contained in:
parent
a1bb4da475
commit
69f23c9e48
6 changed files with 83 additions and 10 deletions
|
@ -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,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue