Skip to content

Commit 31f3fcd

Browse files
authored
Merge pull request #130 from boscop-fr/fix-readme-config
Fixed example of cookie settings
2 parents fe9b5ce + f1fdfdb commit 31f3fcd

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,13 @@ var orejimeConfig = {
148148
description: 'Example of an inline tracking script',
149149
cookies: [
150150
'inline-tracker',
151-
[
152-
// When deleting a cookie, Orejime will try to delete a cookie with the given name,
153-
// the "/" path, and multiple domains (the current domain and `"." + current domain`).
154-
// If an app sets a cookie on a different path or domain than that, Orejime won't be
155-
// able to delete it by itself without more info.
156-
// In this case, you can explicitely define a cookie, a path and domain:
157-
('cookieName', '/blog', '.' + location.hostname)
158-
],
151+
// When deleting a cookie, Orejime will try to delete a cookie with the
152+
// given name, the "/" path, and multiple domains (the current domain
153+
// and `"." + current domain`).
154+
// If an app sets a cookie on a different path or domain than that,
155+
// Orejime won't be able to delete it by itself without more info.
156+
// In this case, you can explicitely define a cookie, a path and domain:
157+
['cookieName', '/blog', '.' + location.hostname],
159158
['cookieName', '/', 'test.mydomain.com']
160159
]
161160
},

0 commit comments

Comments
 (0)