Skip to content

Commit

Permalink
fix localstorage availability check
Browse files Browse the repository at this point in the history
  • Loading branch information
Otouto committed Oct 26, 2018
1 parent 87e31da commit 7e14e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Experiment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const noopStore = {
setItem: function(){}
};

if (typeof window !== 'undefined' && 'localStorage' in window && window['localStorage'] !== null) {
if (typeof window !== 'undefined' && 'localStorage' in window) {
try {
let key = '__pushtell_react__';
window.localStorage.setItem(key, key);
Expand Down

0 comments on commit 7e14e58

Please sign in to comment.