Fix storage upgrade alert condition

This commit is contained in:
2024-06-03 16:13:24 +08:00
parent 6e647d9181
commit 4079ec77f9

View File

@@ -227,7 +227,9 @@ export function App() {
}
if (oldVersion < 11) {
alert("Start upgrading storage, just a sec... (Click OK to continue)");
if (oldVersion < 11 && oldVersion >= 1) {
alert("Start upgrading storage, just a sec... (Click OK to continue)");
}
if (
transaction
.objectStore(STORAGE_NAME)