fix: reduce upgrade toast duration and disable prompt on nightly version, fixed 1450

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2024-11-08 17:01:09 +08:00
parent 25e7cea3c1
commit 7f2ac967eb
2 changed files with 6 additions and 2 deletions
@@ -20,7 +20,10 @@ export const doMigration = async () => {
}
// NOTE: Add migration logic here
if (!APP_VERSION.includes("nightly")) {
window.__app_is_upgraded__ = true
}
appLog(`Upgrade from ${lastVersion} to ${APP_VERSION}`)
window.__app_is_upgraded__ = true
localStorage.setItem(appVersionKey, APP_VERSION)
}
@@ -66,7 +66,8 @@ const AppNotificationContainer: FC = () => {
, enjoy the new features! 🎉
</div>,
{
duration: 10e8,
closeButton: true,
duration: 5000,
action: CHANGELOG_CONTENT
? {
label: "What's new?",