traxxx/assets/js/ui/state.js

13 lines
414 B
JavaScript
Raw Normal View History

const storedFilter = localStorage.getItem('filter');
const storedBatch = localStorage.getItem('batch');
2020-03-23 00:43:49 +00:00
const storedSfw = localStorage.getItem('sfw');
const storedTheme = localStorage.getItem('theme');
export default {
filter: storedFilter ? storedFilter.split(',') : ['gay', 'transsexual'],
range: 'latest',
batch: storedBatch || 'all',
sfw: storedSfw === 'true' || false,
theme: storedTheme || 'light',
};