Archived
Userdata Catch test
This commit is contained in:
1 parent
e39fba9ebc
commit
1241eba57d
3 files changed
+9
-8
No files matched your search
@@ -1,9 +1,10 @@
|
||||
export default {
|
||||
async importLocalStoreCode() {
|
||||
const value = localStorage.getItem("APPSMITH_LOCAL_STORE-6a61c812eeb7b478efb4d1fa-master");
|
||||
if (value !== null) {
|
||||
await storeValue("APPSMITH_LOCAL_STORE-code", value, true);
|
||||
}
|
||||
return value;
|
||||
const raw = localStorage.getItem("APPSMITH_LOCAL_STORE-6a61c812eeb7b478efb4d1fa-master");
|
||||
if (!raw) return null;
|
||||
|
||||
const parsed = JSON.parse(raw);
|
||||
await storeValue("Userinfo", parsed, true);
|
||||
return parsed;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user