Skip to content

Commit

Permalink
Fix localstorage availability check (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Otouto authored and moretti committed Oct 26, 2018
1 parent 87e31da commit d900c8a
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 d900c8a

Please sign in to comment.