Testing for IndexedDB availability

suggest change

In a browser window, test for IndexedDB by checking that window.indexedDB is truthy. A worker uses self.indexedDB instead. The property can be present but null when storage is disabled:

if (window.indexedDB) {
    // IndexedDB is available
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents