-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI/revert backport session storage (#16169)
* Revert "UI: Switch usage of localStorage to sessionStorage (#14054)" This reverts commit 1aa506e. * remove other sessionStorage * changelog * keep old changelog
- Loading branch information
1 parent
32b4d1b
commit 624f8b4
Showing
9 changed files
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
```release-note:improvement | ||
ui: Swap browser localStorage in favor of sessionStorage | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
ui: Revert using localStorage in favor of sessionStorage | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
export default { | ||
getItem(key) { | ||
var item = window.sessionStorage.getItem(key); | ||
var item = window.localStorage.getItem(key); | ||
return item && JSON.parse(item); | ||
}, | ||
|
||
setItem(key, val) { | ||
window.sessionStorage.setItem(key, JSON.stringify(val)); | ||
window.localStorage.setItem(key, JSON.stringify(val)); | ||
}, | ||
|
||
removeItem(key) { | ||
return window.sessionStorage.removeItem(key); | ||
return window.localStorage.removeItem(key); | ||
}, | ||
|
||
keys() { | ||
return Object.keys(window.sessionStorage); | ||
return Object.keys(window.localStorage); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters