Closed m90 closed 3 years ago
It looks like the feature detection for window.localStorage is done like this nowadays (the old one would break on private Safari windows): https://gist.github.com/paulirish/5558557 and https://github.com/Modernizr/Modernizr/blob/b8ac7bf0e77e119da7b6269b9dcdfce83bf85155/feature-detects/storage/localstorage.js#L40-L49
window.localStorage
It also adds a kind of in-place demo of how to use the feature, which is nice.
Looks good to me ✨
It looks like the feature detection for
window.localStorage
is done like this nowadays (the old one would break on private Safari windows): https://gist.github.com/paulirish/5558557 and https://github.com/Modernizr/Modernizr/blob/b8ac7bf0e77e119da7b6269b9dcdfce83bf85155/feature-detects/storage/localstorage.js#L40-L49It also adds a kind of in-place demo of how to use the feature, which is nice.