I want to detect if browser supports webSQL, in the same way we can check for indexedDB like below
if ( window.indexedDB ) {
// indexedDB support is available
}
Modernizr only checks if "openDataBase"
is available on window
:
const supports_webSQL = ("openDatabase" in window);
console.log( "supported:", supports_webSQL );