Fix a permission issue with localStorage