Skip to content

Commit d4713a6

Browse files
committed
Add missing onNavigate step to background init
1 parent 575b3ef commit d4713a6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/scripts/background.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,15 +1289,13 @@ const addAppInstalledEvent = () => {
12891289
*/
12901290
function onInstall() {
12911291
log.debug('First install detected');
1292-
if (process.env.IN_TEST) {
1293-
addAppInstalledEvent();
1294-
} else if (!process.env.METAMASK_DEBUG) {
1292+
addAppInstalledEvent();
1293+
if (!process.env.METAMASK_DEBUG) {
12951294
// If storeAlreadyExisted is true then this is a fresh installation
12961295
// and an app installed event should be tracked.
12971296
addAppInstalledEvent();
12981297
platform.openExtensionInBrowser();
12991298
}
1300-
onNavigateToTab();
13011299
}
13021300

13031301
function onNavigateToTab() {
@@ -1328,6 +1326,7 @@ function setupSentryGetStateGlobal(store) {
13281326
}
13291327

13301328
async function initBackground() {
1329+
onNavigateToTab();
13311330
try {
13321331
await initialize();
13331332
if (process.env.IN_TEST) {

0 commit comments

Comments
 (0)