Skip to content

Commit

Permalink
improve logging for set-session-storage-item
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Nov 9, 2022
1 parent 1094308 commit edd4161
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/scriptlets/set-session-storage-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ export function setSessionStorageItem(source, key, value) {
sessionStorage.setItem(key, value);
hit(source);
} catch (e) {
if (source.verbose) {
// eslint-disable-next-line no-console
console.log(`Was unable to set sessionStorage item due to: ${e.message}`);
}
log(`Was unable to set sessionStorage item due to: ${e.message}`);
}
};

Expand Down

0 comments on commit edd4161

Please sign in to comment.