Clear localstorage cache and add slogan

This commit is contained in:
2019-08-25 01:25:28 +00:00
parent 1b6c8fc6cb
commit 2b1a352917
5 changed files with 15 additions and 1 deletions

View File

@@ -20,3 +20,9 @@ export const infoLine = (story) =>
</Link>
</div>
;
export const clearStorage = () => {
const themeSetting = localStorage.getItem('theme');
localStorage.clear();
localStorage.setItem('theme', themeSetting);
};