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