UNPKG

modernizr

Version:

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.

23 lines (19 loc) 662 B
/*! { "name": "IndexedDB", "property": "indexeddb", "caniuse": "indexeddb", "tags": ["storage"], "polyfills": ["indexeddb"] } !*/ /* DOC Detects support for the IndexedDB client-side storage API (final spec). */ define(['Modernizr', 'prefixed'], function( Modernizr, prefixed ) { // Vendors had inconsistent prefixing with the experimental Indexed DB: // - Webkit's implementation is accessible through webkitIndexedDB // - Firefox shipped moz_indexedDB before FF4b9, but since then has been mozIndexedDB // For speed, we don't test the legacy (and beta-only) indexedDB Modernizr.addTest('indexeddb', !!prefixed("indexedDB", window)); });