Clear localstorage cache and add slogan

This commit is contained in:
Tanner
2019-08-25 01:25:28 +00:00
parent 5ff27591a7
commit 2cf1c44fb9
5 changed files with 15 additions and 1 deletions
+6
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);
};