Chrome - deactivate IndexedDB for testing

google-chrome, indexeddb, javascript

Solution

I don't know why you would want to achieve this, but try the following:

(function(window, undefined){
    window.indexedDB = undefined;
})(window);

Problem

I would like to deactivate IndexedDB in Chrome for testing. Is there any way to do so? Or should I override the default IndexedDB variables, so my script thinks that there is no IndexedDB?

Original source