From fb9f1a1d5d918a071fe0f38912c07eec688dc431 Mon Sep 17 00:00:00 2001 From: Recolic Keghart <root@recolic.net> Date: Sat, 16 Oct 2021 19:56:54 +0800 Subject: [PATCH] improve comments --- background.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/background.js b/background.js index f69553c..c677ebc 100644 --- a/background.js +++ b/background.js @@ -103,7 +103,11 @@ function storeInBrowserStorage(item, callback_function) { * If key already exists, it modify the value. * If key doesn't exist, it add the key-value pair. * If value is undefined, it delete the key-value pair from 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> */ function cookie_keyvalues_set(original_cookies, key, value) { -- GitLab