We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab26c7e commit a5f55e5Copy full SHA for a5f55e5
src/frontend/wwwroot/utils.js
@@ -74,7 +74,18 @@ window.GetAuthDetails = async () => {
74
// });
75
76
window.getStoredData = (key)=> {
77
- return localStorage.getItem(key)
+ let data = localStorage.getItem(key);
78
+
79
+ // If not found in localStorage, check sessionStorage
80
+ if (!data) {
81
+ data = sessionStorage.getItem(key);
82
+ if (data) {
83
+ // Move data from sessionStorage to localStorage
84
+ setStoredData(key, data);
85
+ sessionStorage.removeItem(key); // Optional cleanup
86
+ }
87
88
+ return data;
89
}
90
91
window.setStoredData = (key, value)=> {
0 commit comments