MichalZalecki / storage-factory

Because using localStorage directly is a bad idea
https://www.npmjs.com/package/storage-factory
63 stars 5 forks source link

[Safari] SecurityError: The operation is insecure. #10

Closed davidesigner closed 5 years ago

davidesigner commented 5 years ago

Hi, when a user disable all cookies from his Safari preferences, an error "SecurityError: The operation is insecure." is thrown at this line: export const local = storageFactory(localStorage);.

Have you any solution to fix it?

Thanks for your code!

MichalZalecki commented 5 years ago

Sorry for the late fix and thank you for letting me know!