Skip to content

Commit

Permalink
Only show fake popup to devs
Browse files Browse the repository at this point in the history
  • Loading branch information
abergs committed Oct 28, 2024
1 parent cf8d5b2 commit a09a471
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/desktop/src/main/tray.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { firstValueFrom } from "rxjs";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";

import { DesktopSettingsService } from "../platform/services/desktop-settings.service";
import { cleanUserAgent } from "../utils";
import { cleanUserAgent, isDev } from "../utils";

Check warning on line 10 in apps/desktop/src/main/tray.main.ts

View check run for this annotation

Codecov / codecov/patch

apps/desktop/src/main/tray.main.ts#L10

Added line #L10 was not covered by tests

import { WindowMain } from "./window.main";

Expand Down Expand Up @@ -47,6 +47,7 @@ export class TrayMain {
click: () => this.toggleWindow(),
},
{
visible: isDev(),
label: "Fake Popup",
click: () => this.fakePopup(),

Check warning on line 52 in apps/desktop/src/main/tray.main.ts

View check run for this annotation

Codecov / codecov/patch

apps/desktop/src/main/tray.main.ts#L52

Added line #L52 was not covered by tests
},
Expand Down

0 comments on commit a09a471

Please sign in to comment.