Fix loading layout from hash

This commit is contained in:
Pieter Vander Vennet 2020-09-07 17:26:35 +02:00
parent 2835fa4d0a
commit 105d93a4fe

View file

@ -221,7 +221,7 @@ export class InitUiElements {
hashFromLocalStorage.setData(hash); hashFromLocalStorage.setData(hash);
dedicatedHashFromLocalStorage.setData(hash); dedicatedHashFromLocalStorage.setData(hash);
} }
const layoutToUse = FromJSON.FromBase64(hash.substr(1)); const layoutToUse = FromJSON.FromBase64(hash);
userLayoutParam.setData(layoutToUse.id); userLayoutParam.setData(layoutToUse.id);
return layoutToUse; return layoutToUse;
} catch (e) { } catch (e) {