79210196

Date: 2024-11-21 08:04:16
Score: 0.5
Natty:
Report link

I'm facing this issue and before creating a custom store, I have to check typeof indexedDB !== 'undefined'

See the code example below:

const yourCustomStore  =
  typeof indexedDB !== 'undefined' ? createStore('hi-there', 'keyval') : undefined;

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Thanh Tran