mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-01-12 22:53:27 +08:00
fix: go to RequestDiagnostics after fresh installation to avoid flash redirect, fixes #2330
This commit is contained in:
@@ -25,7 +25,9 @@ const IS_TEST_ENV = process.env.TEST_ENV === 'true';
|
||||
|
||||
chrome.runtime.onInstalled.addListener(async details => {
|
||||
if (details.reason === 'install' && !IS_TEST_ENV) {
|
||||
await chrome.tabs.create({ url: chrome.runtime.getURL(`index.html#${RouteUrls.Onboarding}`) });
|
||||
await chrome.tabs.create({
|
||||
url: chrome.runtime.getURL(`index.html#${RouteUrls.RequestDiagnostics}`),
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user