const setStore = (name, content) => { if (!name) return; if (process.browser) { if (typeof content !== 'string') { content = JSON.stringify(content); } window.localStorage.setItem(name, content); } };
const setStore = (name, content) => { if (!name) return; if (process.browser) { if (typeof content !== 'string') { content = JSON.stringify(content); } window.localStorage.setItem(name, content); } };