add composable to read localstorage

This commit is contained in:
geoffrey45 committed 2022-08-04 17:25:16 +03:00
1 parent ecf6874268
commit 2e00c5cd8f
1 file changed
+3
+3
View File
@@ -0,0 +1,3 @@
export function readLocalStorage(key: string) {
return JSON.parse(localStorage.getItem(key));
}