From 1871ff51728509e0d3118a3ee537dd6f292e8435 Mon Sep 17 00:00:00 2001 From: crowlKats <13135287+crowlKats@users.noreply.github.com> Date: Sat, 15 May 2021 04:18:25 +0200 Subject: docs(runtime): add WebStorage API (#10593) --- docs/runtime/web_storage_api.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/runtime/web_storage_api.md (limited to 'docs/runtime') diff --git a/docs/runtime/web_storage_api.md b/docs/runtime/web_storage_api.md new file mode 100644 index 000000000..05ed8b648 --- /dev/null +++ b/docs/runtime/web_storage_api.md @@ -0,0 +1,9 @@ +## Web Storage API + +As of Deno 1.10, the Web Storage API (`localStorage` & `sessionStorage`) was +introduced, which through `localStorage` allows persistent storage, whereas +`sessionStorage` is a non-persistent memory-based storage. + +To use persistent storage, you need to pass the `--location` flag. The location +for persistent storage is listed in `deno info`, and additionally passing the +`--location` will give you the path for the specified origin. -- cgit v1.2.3