Skip to content

Commit

Permalink
Merge pull request #616 from arconnectio/arc-934/testing-issue
Browse files Browse the repository at this point in the history
fix: add a manifest __TEST_MODE__ check for reset storage
  • Loading branch information
pawanpaudel93 authored Jan 16, 2025
2 parents af478a3 + 4e2bbd7 commit 7d50590
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wallets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ export async function openOrSelectWelcomePage(force = false) {

// Make sure we clear any stored value from previous installations before
// opening the welcome page to onboard the user:
await resetStorage();
// Skip reset for test environment
const manifest = browser.runtime.getManifest();
if (manifest["__TEST_MODE__"] !== true) {
await resetStorage();
}

const url = browser.runtime.getURL("tabs/welcome.html");
const welcomePageTabs = await browser.tabs.query({ url });
Expand Down

0 comments on commit 7d50590

Please sign in to comment.