Skip to content

Commit ad9a2e7

Browse files
committed
Move info about storage scope to top of section.
1 parent 5d527f4 commit ad9a2e7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/user-guide/builtins.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,14 @@ The `pyscript.storage` API wraps the browser's built-in
378378
[IndexDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API)
379379
persistent storage in a synchronous Pythonic API.
380380

381+
!!! info
382+
383+
The storage API is persistent per user tab, page, or domain, in the same
384+
way IndexedDB persists.
385+
386+
This API **is not** saving files in the interpreter's virtual file system
387+
nor onto the user's hard drive.
388+
381389
```python
382390
from pyscript import storage
383391

@@ -438,14 +446,6 @@ store = await storage("my-data-store", storage_class=MyStorage)
438446
# The store object is now an instance of MyStorage.
439447
```
440448

441-
!!! warning
442-
443-
The storage API is persistent per user tab, page, or domain, in the same
444-
way IndexedDB persists.
445-
446-
This API **is not** saving files in the interpreter's virtual file system
447-
nor onto the user's hard drive.
448-
449449
### `pyscript.ffi.to_js`
450450

451451
A utility function to convert Python references into their JavaScript

0 commit comments

Comments
 (0)