Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 18:41:43 +02:00
parent fab0a7fa3b
commit efdd652b23
7 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ lastUpdated: 2020-12-31T13:13:47+02:00
Checks if `sessionStorage` is enabled.
- Use a `try...catch` block to return `true` if all operations complete successfully, `false` otherwise.
- Use `Storage.setItem()` and `Storage.removeItem()` to test storing and deleting a value in `window.sessionStorage`.
- Use `Storage.setItem()` and `Storage.removeItem()` to test storing and deleting a value in `Window.sessionStorage`.
```js
const isSessionStorageEnabled = () => {