diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-17 15:21:30 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-22 14:53:02 -0500 |
commit | c0d91bffc461c61af9d35aecb7c92e15648382b2 (patch) | |
tree | 4d74f1d6b08356ab96871b5278cd511ff33b0c2a /ext/bg/js/database.js | |
parent | b3212d776e3f6d735bc9d67acbebc28b7f061ba8 (diff) |
Add no-shadow
Diffstat (limited to 'ext/bg/js/database.js')
-rw-r--r-- | ext/bg/js/database.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js index 1f6810cf..558f3ceb 100644 --- a/ext/bg/js/database.js +++ b/ext/bg/js/database.js @@ -809,9 +809,9 @@ class Database { for (const objectStoreName of objectStoreNames) { const {primaryKey, indices} = stores[objectStoreName]; - const objectStoreNames = transaction.objectStoreNames || db.objectStoreNames; + const objectStoreNames2 = transaction.objectStoreNames || db.objectStoreNames; const objectStore = ( - Database._listContains(objectStoreNames, objectStoreName) ? + Database._listContains(objectStoreNames2, objectStoreName) ? transaction.objectStore(objectStoreName) : db.createObjectStore(objectStoreName, primaryKey) ); |