Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/DickvdBrink/IndexedDBShim
Browse files Browse the repository at this point in the history
…into DickvdBrink-master
  • Loading branch information
DickvdBrink committed Apr 8, 2014
2 parents b221081 + 21184e8 commit e596131
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
6 changes: 6 additions & 0 deletions dist/IndexedDBShim.js
Expand Up @@ -1672,6 +1672,12 @@ var idbModules = {};
window.IDBTransaction = idbModules.IDBTransaction;
window.IDBCursor = idbModules.IDBCursor;
window.IDBKeyRange = idbModules.IDBKeyRange;
// On some browsers the assignment fails, overwrite with the defineProperty method
if (window.indexedDB !== idbModules.shimIndexedDB && Object.defineProperty) {
Object.defineProperty(window, 'indexedDB', {
value: idbModules.shimIndexedDB
});
}
};
window.shimIndexedDB.__debug = function(val){
idbModules.DEBUG = val;
Expand Down

0 comments on commit e596131

Please sign in to comment.