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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user