Fix loading of compressed themes in the custom generator too

This commit is contained in:
Pieter Vander Vennet 2021-04-11 23:43:23 +02:00
parent d601896f79
commit 9874b7d8c8
3 changed files with 16 additions and 6 deletions

View file

@ -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