fix: go to RequestDiagnostics after fresh installation to avoid flash redirect, fixes #2330

This commit is contained in:
Pete Watters
2023-06-30 13:10:33 +01:00
parent 74f6d25392
commit bef7e080f8

View File

@@ -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}`),
});
}
});