Created
May 26, 2018 21:43
-
-
Save petamoriken/316f956e3085eb1a6562bb6c40ce4eef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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