Skip to content

Commit 1a90e53

Browse files
authored
Merge pull request #5452 from segmentio/oscb/storageExample
fix ajs storage example
2 parents f04a30d + 17eb907 commit 1a90e53

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/connections/sources/catalog/libraries/website/javascript/cookie-validity-update.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,19 @@ The `storage` property accepts an array of supported storage names (`localStorag
164164
```js
165165
analytics.load('writeKey', {
166166
// Global Storage Priority: Both User and Group data
167-
storage: ['cookie', 'localStorage', 'memory']
167+
storage: {
168+
stores: ['cookie', 'localStorage', 'memory']
169+
},
168170
// Specific Storage Priority
169171
user: {
170-
storage: ['cookie', 'localStorage', 'memory']
172+
storage: {
173+
stores: ['cookie', 'localStorage', 'memory']
174+
}
171175
},
172176
group: {
173-
storage: ['cookie', 'localStorage', 'memory']
177+
storage: {
178+
stores: ['cookie', 'localStorage', 'memory']
179+
}
174180
},
175181
}
176182
```

0 commit comments

Comments
 (0)