Skip to content

Commit

Permalink
fix the description
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Oct 31, 2022
1 parent ed23e25 commit 9d9584e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/helpers/cookie-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const parseCookieString = (cookieString) => {
};

/**
* Check if cookie with specified name and value is present in cookie cookie string
* Check if cookie with specified name and value is present in a cookie string
* @param {string} cookieString
* @param {string} name
* @param {string} value
Expand Down
9 changes: 7 additions & 2 deletions src/scriptlets/trusted-set-cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ import {
* - `1day` keyword for setting expiration date to one day
* - 'reload' - optional, boolean. Argument for reloading page after cookie is set. Defaults to `false`
* - `path` - optional, argument for setting cookie path, defaults to `/`; possible values:
* - `/` — root path
* - `none` — to set no path at all
* - `/` — root path
* - `none` — to set no path at all
*
* **Examples**
* 1. Set cookie
* ```
Expand All @@ -55,6 +56,10 @@ import {
* example.org#%#//scriptlet('set-cookie', 'cmpconsent', 'decline', '', 'true')
* ```
*
* 6. Set cookie with no path
* ```
* example.org#%#//scriptlet('set-cookie', 'cmpconsent', 'decline', '', '', 'none')
* ```
*/
/* eslint-enable max-len */

Expand Down

0 comments on commit 9d9584e

Please sign in to comment.