Skip to content

Commit

Permalink
fix scriptlet name in the description
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Nov 7, 2022
1 parent e1e5fc7 commit 639ab15
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/scriptlets/trusted-set-cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,32 +40,32 @@ import {
* **Examples**
* 1. Set cookie
* ```
* example.org#%#//scriptlet('set-cookie', 'cmpconsent', 'accept')
* example.org#%#//scriptlet('set-cookie', 'cmpconsent', '1-accept_1')
* example.org#%#//scriptlet('trusted-set-cookie', 'cmpconsent', 'accept')
* example.org#%#//scriptlet('trusted-set-cookie', 'cmpconsent', '1-accept_1')
* ```
*
* 2. Set cookie with `new Date().getTime()` value
* ```
* example.org#%#//scriptlet('set-cookie', 'cmpconsent', '$now')
* example.org#%#//scriptlet('trusted-set-cookie', 'cmpconsent', '$now')
* ```
*
* 3. Set cookie which will expire in 3 days
* ```
* example.org#%#//scriptlet('set-cookie', 'cmpconsent', 'accept', '259200')
* example.org#%#//scriptlet('trusted-set-cookie', 'cmpconsent', 'accept', '259200')
* ```
*
* 4. Set cookie which will expire in one year
* ```
* example.org#%#//scriptlet('set-cookie', 'cmpconsent', 'accept', '1year')
* example.org#%#//scriptlet('trusted-set-cookie', 'cmpconsent', 'accept', '1year')
* ```
* 5. Reload the page if cookie was successfully set
* ```
* example.org#%#//scriptlet('set-cookie', 'cmpconsent', 'decline', '', 'true')
* example.org#%#//scriptlet('trusted-set-cookie', 'cmpconsent', 'decline', '', 'true')
* ```
*
* 6. Set cookie with no path
* ```
* example.org#%#//scriptlet('set-cookie', 'cmpconsent', 'decline', '', '', 'none')
* example.org#%#//scriptlet('trusted-set-cookie', 'cmpconsent', 'decline', '', '', 'none')
* ```
*/
/* eslint-enable max-len */
Expand Down

0 comments on commit 639ab15

Please sign in to comment.