Skip to content

Commit 97a54fb

Browse files
author
FalkWolsky
committed
unifiying the naming of local storage
1 parent ae75d36 commit 97a54fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/packages/lowcoder/src/util/localStorageUtil.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ export function getMainCompValue(): object {
106106
export type HomeLayoutType = "list" | "card";
107107

108108
export function saveHomeLayout(layout: HomeLayoutType) {
109-
localStorage.setItem("home_layout", layout);
109+
localStorage.setItem("lowcoder_home_layout", layout);
110110
}
111111

112112
export function getHomeLayout(): HomeLayoutType {
113-
const layout = localStorage.getItem("home_layout");
113+
const layout = localStorage.getItem("lowcoder_home_layout");
114114
return layout === "list" || layout === "card" ? layout : "card";
115115
}
116116

0 commit comments

Comments
 (0)