Test
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
export default {
|
export default {
|
||||||
async importLocalStoreCode() {
|
async importLocalStoreCode() {
|
||||||
const raw = localStorage.getItem("APPSMITH_LOCAL_STORE-6a61c812eeb7b478efb4d1fa-master");
|
const raw = window.localStorage.getItem("APPSMITH_LOCAL_STORE-6a61c812eeb7b478efb4d1fa-master");
|
||||||
if (!raw) return null;
|
if (!raw) return null;
|
||||||
|
|
||||||
const parsed = JSON.parse(raw);
|
let value;
|
||||||
await storeValue("Userinfo", parsed, true);
|
try {
|
||||||
return parsed;
|
value = JSON.parse(raw);
|
||||||
|
} catch (e) {
|
||||||
|
value = raw;
|
||||||
|
}
|
||||||
|
|
||||||
|
await storeValue("Userinfo", value, true);
|
||||||
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user