Skip to content

Instantly share code, notes, and snippets.

@petamoriken
Created May 26, 2018 21:43
Show Gist options
  • Save petamoriken/316f956e3085eb1a6562bb6c40ce4eef to your computer and use it in GitHub Desktop.
Save petamoriken/316f956e3085eb1a6562bb6c40ce4eef to your computer and use it in GitHub Desktop.
/**
* @file Fix https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/106663/
*/
const prototype = IDBObjectStore.prototype;
const { add, put, count } = prototype;
prototype.add = function(value, key) {
return key != null ? add.call(this, value, key) : add.call(this, value);
};
prototype.put = function(value, key) {
return key != null ? put.call(this, value, key) : put.call(this, value);
};
prototype.count = function(query) {
return query != null ? count.call(this, query) : count.call(this);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment