From 4079ec77f9fc9820fd504943a0422b10711785c0 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Mon, 3 Jun 2024 16:13:24 +0800 Subject: [PATCH] Fix storage upgrade alert condition --- src/app.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app.tsx b/src/app.tsx index 33e9754..4f48451 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -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)