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:
@@ -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?",
|
||||
|
||||
Reference in New Issue
Block a user