Move localStorageUsable initialization

parent 3f4997fb
......@@ -24,7 +24,6 @@ export default {
},
data() {
return {
localStorageUsable: AccessorUtilities.isLocalStorageAccessSafe(),
isVisible: true,
};
},
......@@ -49,6 +48,7 @@ export default {
},
},
created() {
this.localStorageUsable = AccessorUtilities.isLocalStorageAccessSafe();
if (this.localStorageUsable) {
const shouldHideSummaryDetails = Boolean(localStorage.getItem(LOCAL_STORAGE_KEY));
this.isVisible = !shouldHideSummaryDetails;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment