We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
;
1 parent 50acba2 commit b4134f6Copy full SHA for b4134f6
src/swatches.js
@@ -11,12 +11,12 @@ export function getSetGlobalSwatches(data){
11
customKey = typeof _store == 'string' ? _store : '';
12
13
if ( _store && data ){
14
- localStorage.setItem(storeKey + customKey, data)
+ localStorage.setItem(storeKey + customKey, data.join(';'))
15
dispatchEvent( new Event('storage') )
16
}
17
18
// "filter(String)" clean up any empty strings
19
- return localStorage[storeKey + customKey]?.split(',').filter(String) || []
+ return localStorage[storeKey + customKey]?.split(';').filter(String) || []
20
21
22
// sync instance swatches with global ones. skip duplicates
0 commit comments