Skip to content
Snippets Groups Projects
Commit fb9f1a1d authored by Recolic Keghart's avatar Recolic Keghart
Browse files

improve comments

parent 4dd22d25
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,11 @@ function storeInBrowserStorage(item, callback_function) { ...@@ -103,7 +103,11 @@ function storeInBrowserStorage(item, callback_function) {
* If key already exists, it modify the value. * If key already exists, it modify the value.
* If key doesn't exist, it add the key-value pair. * If key doesn't exist, it add the key-value pair.
* If value is undefined, it delete the key-value pair from cookies. * If value is undefined, it delete the key-value pair from cookies.
*
* Assuming that, the same key SHOULD NOT appear twice in cookies. * Assuming that, the same key SHOULD NOT appear twice in cookies.
* Also assuming that, all cookies doesn't contains semicolon.
* (99.9% websites are following these rules)
*
* Recolic K <root@recolic.net> * Recolic K <root@recolic.net>
*/ */
function cookie_keyvalues_set(original_cookies, key, value) { function cookie_keyvalues_set(original_cookies, key, value) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment