use devFlags.skipWelcomeOnInstall instead of platformUtilsService.isDev
This commit is contained in:
parent
d5b262db17
commit
622d8b25d4
|
@ -2,7 +2,8 @@
|
||||||
"devFlags": {
|
"devFlags": {
|
||||||
"managedEnvironment": {
|
"managedEnvironment": {
|
||||||
"base": "https://localhost:8080"
|
"base": "https://localhost:8080"
|
||||||
}
|
},
|
||||||
|
"skipWelcomeOnInstall": true
|
||||||
},
|
},
|
||||||
"flags": {
|
"flags": {
|
||||||
"showPasswordless": true,
|
"showPasswordless": true,
|
||||||
|
|
|
@ -8,6 +8,7 @@ import { ConfigService } from "@bitwarden/common/platform/abstractions/config/co
|
||||||
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
|
||||||
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
|
||||||
import { SystemService } from "@bitwarden/common/platform/abstractions/system.service";
|
import { SystemService } from "@bitwarden/common/platform/abstractions/system.service";
|
||||||
|
import { devFlagEnabled } from "@bitwarden/common/platform/misc/flags";
|
||||||
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
import { Utils } from "@bitwarden/common/platform/misc/utils";
|
||||||
import { CipherType } from "@bitwarden/common/vault/enums";
|
import { CipherType } from "@bitwarden/common/vault/enums";
|
||||||
|
|
||||||
|
@ -324,7 +325,7 @@ export default class RuntimeBackground {
|
||||||
|
|
||||||
if (this.onInstalledReason != null) {
|
if (this.onInstalledReason != null) {
|
||||||
if (this.onInstalledReason === "install") {
|
if (this.onInstalledReason === "install") {
|
||||||
if (!this.platformUtilsService.isDev()) {
|
if (!devFlagEnabled("skipWelcomeOnInstall")) {
|
||||||
void BrowserApi.createNewTab("https://bitwarden.com/browser-start/");
|
void BrowserApi.createNewTab("https://bitwarden.com/browser-start/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ export type SharedFlags = {
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
export type SharedDevFlags = {
|
export type SharedDevFlags = {
|
||||||
noopNotifications: boolean;
|
noopNotifications: boolean;
|
||||||
|
skipWelcomeOnInstall: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
function getFlags<T>(envFlags: string | T): T {
|
function getFlags<T>(envFlags: string | T): T {
|
||||||
|
|
Loading…
Reference in New Issue