1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

[PM-13099] Enable browserintegration on dmg builds on adding an env variable (#11359)

* Enable browserintegration on dmg builds on adding an env variable

* Fix crash

* Cleanup
This commit is contained in:
Bernd Schoolmann
2024-12-09 02:09:57 -08:00
committed by GitHub
parent d5af932cef
commit 3bfe5e4a65
3 changed files with 62 additions and 35 deletions

View File

@@ -70,6 +70,16 @@ export function isWindowsPortable() {
return isWindows() && process.env.PORTABLE_EXECUTABLE_DIR != null;
}
/**
* We block the browser integration on some unsupported platforms, which also
* blocks partially supported platforms (mac .dmg in dev builds) / prevents
* experimenting with the feature for QA. So this env var allows overriding
* the block.
*/
export function allowBrowserintegrationOverride() {
return process.env.ALLOW_BROWSER_INTEGRATION_OVERRIDE === "true";
}
/**
* Sanitize user agent so external resources used by the app can't built data on our users.
*/