これでいいのか?

if (window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB) {
  console.log("you can use");
} else {
  console.log("you can't use");
}