helpers: remove unused

This commit is contained in:
Artur Tamborski 2020-12-06 23:12:19 +01:00
parent c3c01e438b
commit 0c539cc616

View File

@ -1,16 +0,0 @@
export function getData(key: string): string {
try {
return JSON.parse(localStorage.getItem(key) || '');
} catch (err) {
console.error(`Error getting item ${key} from localStorage`, err);
}
return '';
}
export function setData(key: string, item: any): void {
try {
return localStorage.setItem(key, JSON.stringify(item));
} catch (err) {
console.error(`Error storing item ${key} to localStorage`, err);
}
};