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

Allow modifying cookies

parent b4fea3c4
No related branches found
No related tags found
No related merge requests found
...@@ -103,6 +103,7 @@ function storeInBrowserStorage(item, callback_function) { ...@@ -103,6 +103,7 @@ 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.
* 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