Skip to content

Commit ef8d576

Browse files
authored
Merge pull request #2680 from joaquinelio/patch-4
old and new
2 parents 57ff060 + 2a6fd54 commit ef8d576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

6-data-storage/03-indexeddb/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ let deleteRequest = indexedDB.deleteDatabase(name)
106106
// deleteRequest.onsuccess/onerror tracks the result
107107
```
108108

109-
```warn header="We can't open an older version of the database"
109+
```warn header="We can't open a database using an older open call version"
110110
If the current user database has a higher version than in the `open` call, e.g. the existing DB version is `3`, and we try to `open(...2)`, then that's an error, `openRequest.onerror` triggers.
111111
112112
That's rare, but such a thing may happen when a visitor loads outdated JavaScript code, e.g. from a proxy cache. So the code is old, but his database is new.

0 commit comments

Comments
 (0)