summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrowlKats <13135287+crowlKats@users.noreply.github.com>2021-05-15 04:18:25 +0200
committerGitHub <noreply@github.com>2021-05-15 11:18:25 +0900
commit1871ff51728509e0d3118a3ee537dd6f292e8435 (patch)
treecd1f3831304e71368bef726540dcf3a2ef2fa7a7
parentb0e30dbbc63933642a35cd9c4deff21c009860a9 (diff)
docs(runtime): add WebStorage API (#10593)
-rw-r--r--docs/runtime/web_storage_api.md9
-rw-r--r--docs/toc.json1
2 files changed, 10 insertions, 0 deletions
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.
diff --git a/docs/toc.json b/docs/toc.json
index 1bb863e31..d1f93a642 100644
--- a/docs/toc.json
+++ b/docs/toc.json
@@ -23,6 +23,7 @@
"web_platform_apis": "Web Platform APIs",
"http_server_apis": "HTTP Server APIs",
"location_api": "Location API",
+ "web_storage_api": "Web Storage API",
"workers": "Workers"
}
},