Skip to content

Commit

Permalink
fix(docs): firefox detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Kubiak committed Oct 11, 2019
1 parent 119cd7c commit 689f3a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/local-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const _isSupported = function () {
try {
// check if the browser allows access to local storage
// it should be truthy, and it should be an object
// firefox window.localStorage is null if dom.storage.enabled is set to false
// ie window.localStorage is undefined
if (!window.localStorage || !(typeof window.localStorage === 'object')) {
supported = false
Expand Down

0 comments on commit 689f3a9

Please sign in to comment.