Skip to content

Commit 09a0749

Browse files
Fix the documentation, Cookies.remove() do not use use the converters.
The converters are currently being used to adapt third party cookies for reading only, the "remove()" method do not retrieve anything so it doesn't make sense using the current converter. Closes js-cookiegh-64.
1 parent 625c466 commit 09a0749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Cookies.remove('name', { secure: true });
203203
## Converter
204204

205205
Create a new instance of the api that overrides the default decoding implementation.
206-
All methods that rely in a proper decoding to work, such as `Cookies.remove()` and `Cookies.get()`, will run the converter first for each cookie.
206+
All get methods that rely in a proper decoding to work, such as `Cookies.get()` and `Cookies.get('name')`, will run the converter first for each cookie.
207207
The returning String will be used as the cookie value.
208208

209209
Example from reading one of the cookies that can only be decoded using the `escape` function:

0 commit comments

Comments
 (0)