tools / commit
Added some CYA around using local storage.
separator-page/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/separator-page/index.html b/separator-page/index.html index 133fd1f..a4f32a4 100644 --- a/separator-page/index.html +++ b/separator-page/index.html @@ -39,7 +39,9 @@ This is a separator page! 1. If you messed up this page, click on "Hard Reset" to go back to this default message 1. The name and the description are stored as zipped content in the url, so copy-pasting the url in a new tab will exactly reproduce this page 1. Your data is stored in the hash fragment of the url, and [this data is not sent to the server](https://stackoverflow.com/questions/14462218/is-the-url-fragment-identifier-sent-to-the-server), so your notes are never sent anywhere -1. But your notes **do** end up in the browser's history, so don't keep anything very important here` +1. But your notes **do** end up in the browser's history, so don't keep anything very important here +1. The default page state (default title and contents) is kept in [local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage), so this information also never leaves your computer +1. Local storage is accessible by any other script that's executing in your browser, so technically any script can get your local "default separator page" state` }; const maxDataLength = 64 * 1024; let currentState = defaultState;