mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 11:22:30 +02:00
fix(v2): fail-safe usage of browser storage (localStorage/sessionStorage) when access is denied (#4501)
* fix: Fix unsafe uses of localStorage Puts all uses of localStorage behind an abstraction which doesn't fail when localStorage isn't available. * cleanup fail-safe browser storage usage Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
cbb31783d7
commit
2c57f44bd6
8 changed files with 160 additions and 52 deletions
|
@ -16,6 +16,8 @@ export {
|
|||
FooterLinkItem,
|
||||
} from './utils/useThemeConfig';
|
||||
|
||||
export {createStorageSlot, listStorageKeys} from './utils/storageUtils';
|
||||
|
||||
export {useAlternatePageUtils} from './utils/useAlternatePageUtils';
|
||||
|
||||
export {docVersionSearchTag, DEFAULT_SEARCH_TAG} from './utils/searchUtils';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue