Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
xander-marjoram committed Apr 26, 2024
1 parent e019ae8 commit 7393e98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,16 @@ const fullAddressLocalStorageService = {
},

getItem (key) {
console.log('================');
console.log('window is', window);
console.log('window.localStorage is', window.localStorage);
console.log('JSON is', JSON);
if (window.localStorage) {
const item = window.localStorage.getItem(key);

console.log('item is', item);
return item ? JSON.parse(item) : false;
}
console.log('================');

return false;
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/**
* @jest-environment jsdom
*/

import * as generalServices from '../general.services';
import * as helpers from '../../utils/helpers';
import { LOCATION_COOKIE_PROPS } from '../constants';
Expand Down

0 comments on commit 7393e98

Please sign in to comment.