import: added hash to url translation for old maps support

editor: fixed setProvider
This commit is contained in:
muerwre 2018-12-10 10:48:08 +07:00
parent 7bf737b62b
commit d95f51bd3b
3 changed files with 28 additions and 10 deletions

View file

@ -8,7 +8,7 @@ export const pushPath = url => {
export const getUrlData = (url = getPath()) => {
const [, path, mode] = url.split('/');
const { host } = window.location;
const { host, hash } = window.location;
return { path, mode, host };
return { path, mode, host, hash };
};