Skip to content

Commit

Permalink
fix: Show outdated browser warning immediately
Browse files Browse the repository at this point in the history
The outdated browser warning logic has been updated to ensure that it
gets shown immediately fot new installations if applicable.

We have a timer setup to ensure we don't bother users too often with
this warning; it recurs every two days. However, it was initialized
to the current date, so new users would not see it for two days.
  • Loading branch information
Gudahtt committed Jun 24, 2024
1 parent fcb4265 commit 122ab47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/scripts/controllers/app-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class AppStateController extends EventEmitter {
fullScreenGasPollTokens: [],
recoveryPhraseReminderHasBeenShown: false,
recoveryPhraseReminderLastShown: new Date().getTime(),
outdatedBrowserWarningLastShown: new Date().getTime(),
outdatedBrowserWarningLastShown: null,
nftsDetectionNoticeDismissed: false,
showTestnetMessageInDropdown: true,
showBetaHeader: isBeta(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"fullScreenGasPollTokens": "object",
"recoveryPhraseReminderHasBeenShown": true,
"recoveryPhraseReminderLastShown": "number",
"outdatedBrowserWarningLastShown": "number",
"outdatedBrowserWarningLastShown": "object",
"nftsDetectionNoticeDismissed": false,
"showTestnetMessageInDropdown": true,
"showBetaHeader": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"fullScreenGasPollTokens": "object",
"recoveryPhraseReminderHasBeenShown": true,
"recoveryPhraseReminderLastShown": "number",
"outdatedBrowserWarningLastShown": "number",
"outdatedBrowserWarningLastShown": "object",
"nftsDetectionNoticeDismissed": false,
"showTestnetMessageInDropdown": true,
"showBetaHeader": false,
Expand Down

0 comments on commit 122ab47

Please sign in to comment.