forked from MapComplete/MapComplete
Fix loading of compressed themes in the custom generator too
This commit is contained in:
parent
d601896f79
commit
9874b7d8c8
3 changed files with 16 additions and 6 deletions
|
@ -216,7 +216,8 @@ export class InitUiElements {
|
|||
json = JSON.parse(atob(hash));
|
||||
} catch (e) {
|
||||
// We try to decode with lz-string
|
||||
json = JSON.parse(atob(window.location.hash.substr(1))) as LayoutConfigJson;
|
||||
json = JSON.parse( Utils.UnMinify(LZString.decompressFromBase64(hash))) as LayoutConfigJson;
|
||||
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue