Commit 63e7028b authored by Michał Woźniak's avatar Michał Woźniak
Browse files

Set is awesome

parent 17cba949
Pipeline #209 passed with stage
in 4 seconds
......@@ -1726,7 +1726,9 @@ let processUrlHash = (hash) => {
// return the data
return {
sites: getSitesFromUrlString(sites_hash),
settings: settings_hash.split(',')
// woo, sets!
// https://wsvincent.com/javascript-remove-duplicates-array/
settings: [...new Set(settings_hash.split(','))]
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment