Testing for IndexedDB availability
suggest changeYou can test for IndexedDB support in the current environment by checking for the presence of the window.indexedDB
property:
if (window.indexedDB) {
// IndexedDB is available
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents