mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 16:00:29 +02:00
refactor: clear a few ESLint warnings (#5808)
* refactor: clear a few ESLint warnings Signed-off-by: Josh-Cena <sidachen2003@gmail.com> * Fix
This commit is contained in:
parent
68c970175a
commit
4b2152a964
9 changed files with 35 additions and 26 deletions
|
@ -26,8 +26,8 @@ function getBrowserStorage(
|
|||
} else {
|
||||
try {
|
||||
return window[storageType];
|
||||
} catch (e: any) {
|
||||
logOnceBrowserStorageNotAvailableWarning(e);
|
||||
} catch (e) {
|
||||
logOnceBrowserStorageNotAvailableWarning(e as Error);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue