forked from MapComplete/MapComplete
Small workaround for share api which does not share the hash
This commit is contained in:
parent
4700e71d2e
commit
02ce4e5d7e
6 changed files with 13 additions and 3 deletions
|
@ -85,6 +85,11 @@ export class InitUiElements {
|
|||
throw "Incorrect layout"
|
||||
}
|
||||
|
||||
const hashContent = QueryParameters.GetQueryParameter("hash_content", "", "A workaround for the share-api which doesn't share the hash...");
|
||||
if((hashContent.data ?? "") !== ""){
|
||||
window.location.hash = hashContent.data;
|
||||
}
|
||||
|
||||
console.log("Using layout: ", layoutToUse.id, "LayoutFromBase64 is ", layoutFromBase64);
|
||||
State.state = new State(layoutToUse);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue