1 getItem(key) {
2 if (typeof window !== 'undefined' && typeof Storage !== undefined) {
3 return localStorage.getItem(key);
4 }
5
6 return null;
7 }
1 getItem(key) {
2 if (typeof window !== 'undefined' && typeof Storage !== undefined) {
3 return localStorage.getItem(key);
4 }
5
6 return null;
7 }