mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
Turn on passkeys and dev mode
This commit is contained in:
@@ -8,9 +8,7 @@
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-jit</key>
|
||||
<true/>
|
||||
<!--
|
||||
<key>com.apple.developer.authentication-services.autofill-credential-provider</key>
|
||||
<true/>
|
||||
-->
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -18,10 +18,8 @@
|
||||
<true/>
|
||||
<key>com.apple.security.device.usb</key>
|
||||
<true/>
|
||||
<!--
|
||||
<key>com.apple.developer.authentication-services.autofill-credential-provider</key>
|
||||
<true/>
|
||||
-->
|
||||
<key>com.apple.security.temporary-exception.files.home-relative-path.read-write</key>
|
||||
<array>
|
||||
<string>/Library/Application Support/Mozilla/NativeMessagingHosts/</string>
|
||||
|
||||
@@ -9,7 +9,6 @@ import {
|
||||
mergeMap,
|
||||
switchMap,
|
||||
takeUntil,
|
||||
EMPTY,
|
||||
} from "rxjs";
|
||||
|
||||
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
||||
@@ -61,9 +60,9 @@ export class DesktopAutofillService implements OnDestroy {
|
||||
.pipe(
|
||||
distinctUntilChanged(),
|
||||
switchMap((enabled) => {
|
||||
if (!enabled) {
|
||||
return EMPTY;
|
||||
}
|
||||
// if (!enabled) {
|
||||
// return EMPTY;
|
||||
// }
|
||||
|
||||
return this.accountService.activeAccount$.pipe(
|
||||
map((account) => account?.id),
|
||||
|
||||
@@ -20,11 +20,12 @@ export function invokeMenu(menu: RendererMenuItem[]) {
|
||||
}
|
||||
|
||||
export function isDev() {
|
||||
// ref: https://github.com/sindresorhus/electron-is-dev
|
||||
if ("ELECTRON_IS_DEV" in process.env) {
|
||||
return parseInt(process.env.ELECTRON_IS_DEV, 10) === 1;
|
||||
}
|
||||
return process.defaultApp || /node_modules[\\/]electron[\\/]/.test(process.execPath);
|
||||
// // ref: https://github.com/sindresorhus/electron-is-dev
|
||||
// if ("ELECTRON_IS_DEV" in process.env) {
|
||||
// return parseInt(process.env.ELECTRON_IS_DEV, 10) === 1;
|
||||
// }
|
||||
// return process.defaultApp || /node_modules[\\/]electron[\\/]/.test(process.execPath);
|
||||
return true;
|
||||
}
|
||||
|
||||
export function isLinux() {
|
||||
|
||||
Reference in New Issue
Block a user