1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 05:30:01 +00:00

Inverse logic for popout prompt

This commit is contained in:
Alec Rippberger
2025-03-04 18:32:35 -06:00
parent 9a45e88719
commit 79f58dcee9

View File

@@ -26,7 +26,13 @@ export class ExtensionTwoFactorAuthEmailComponentService
const isTwoFactorFormPersistenceEnabled = await this.configService.getFeatureFlag(
FeatureFlag.PM9115_TwoFactorFormPersistence,
);
if (BrowserPopupUtils.inPopup(this.window) && isTwoFactorFormPersistenceEnabled) {
if (isTwoFactorFormPersistenceEnabled) {
// If the feature flag is enabled, we don't need to prompt the user to open the popout
return;
}
if (BrowserPopupUtils.inPopup(this.window)) {
const confirmed = await this.dialogService.openSimpleDialog({
title: { key: "warning" },
content: { key: "popup2faCloseMessage" },