suppress welcome window on install when extension is in dev mode

This commit is contained in:
Jonathan Prusik 2024-04-22 14:16:25 -04:00
parent d8749a0c56
commit 54eb4885e1
No known key found for this signature in database
GPG Key ID: 83CF2DF735A5EC35
1 changed files with 4 additions and 3 deletions

View File

@ -318,9 +318,10 @@ export default class RuntimeBackground {
if (this.onInstalledReason != null) {
if (this.onInstalledReason === "install") {
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
// eslint-disable-next-line @typescript-eslint/no-floating-promises
BrowserApi.createNewTab("https://bitwarden.com/browser-start/");
if (process.env.ENV !== "development") {
void BrowserApi.createNewTab("https://bitwarden.com/browser-start/");
}
await this.autofillSettingsService.setInlineMenuVisibility(
AutofillOverlayVisibility.OnFieldFocus,
);