Skip to content

Commit 5be8133

Browse files
XesauFagnerMartinsBrack
authored andcommitted
Fix JS syntax in readme demo code (js-cookie#432)
1 parent 3fcefa5 commit 5be8133

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
@@ -99,7 +99,7 @@ Cookies.get(); // => { name: 'value' }
9999
have been used when writing the cookie in question):*
100100

101101
```javascript
102-
Cookies.get('foo', domain: { 'sub.example.com' }); // `domain` won't have any effect...!
102+
Cookies.get('foo', { domain: 'sub.example.com' }); // `domain` won't have any effect...!
103103
```
104104

105105
The cookie with the name `foo` will only be available on `.get()` if it's visible from where the

0 commit comments

Comments
 (0)