I am trying to implement a simple web-app using indexedDB, and use this snippet of code to detect browser compatibility:
if(!window.indexedDB) {
alert("Your browser does not support indexedDB.");
}
When run in Chrome it does not open an alert box(as expected), but when run in IE, the alert box pops up. I figured this was just a crappy version of Internet Explorer, so I checked. It was 11. I went to http://caniuse.com to see what version is supported, and IE 11 is supported. What is going wrong? am I using the wrong code to detect indexedDB?