traxxx/assets/js/ui/state.js

8 lines
235 B
JavaScript

const storedFilter = localStorage.getItem('filter');
const storedRange = localStorage.getItem('range');
export default {
filter: storedFilter ? storedFilter.split(',') : ['gay', 'transsexual'],
range: storedRange || 'new',
};