summaryrefslogtreecommitdiffstats
path: root/toolkit/modules/IndexedDB.sys.mjs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /toolkit/modules/IndexedDB.sys.mjs
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/modules/IndexedDB.sys.mjs')
-rw-r--r--toolkit/modules/IndexedDB.sys.mjs8
1 files changed, 3 insertions, 5 deletions
diff --git a/toolkit/modules/IndexedDB.sys.mjs b/toolkit/modules/IndexedDB.sys.mjs
index b3b9f81b8d..1ba7bb6835 100644
--- a/toolkit/modules/IndexedDB.sys.mjs
+++ b/toolkit/modules/IndexedDB.sys.mjs
@@ -281,9 +281,7 @@ export class IndexedDB {
*
* @param {string} dbName
* The name of the database to open.
- * @param {object} options
- * The options with which to open the database.
- * @param {integer} options.version
+ * @param {integer} version
* The schema version with which the database needs to be opened. If
* the database does not exist, or its current schema version does
* not match, the `onupgradeneeded` function will be called.
@@ -295,8 +293,8 @@ export class IndexedDB {
*
* @returns {Promise<IndexedDB>}
*/
- static open(dbName, options, onupgradeneeded = null) {
- let request = indexedDB.open(dbName, options);
+ static open(dbName, version, onupgradeneeded = null) {
+ let request = indexedDB.open(dbName, version);
return this._wrapOpenRequest(request, onupgradeneeded);
}