1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 10:33:57 +00:00

add/improve comments and logging

This commit is contained in:
John Harrington
2025-11-20 09:51:49 -07:00
parent 61b26241ad
commit 18064efc4f
10 changed files with 35 additions and 31 deletions

View File

@@ -249,6 +249,7 @@ export declare namespace chromium_importer {
export function getMetadata(): Record<string, NativeImporterMetadata>
export function getAvailableProfiles(browser: string): Array<ProfileInfo>
export function importLogins(browser: string, profileId: string): Promise<Array<LoginImportResult>>
// used only on Mac OS App Store builds, no-op on other platforms
export function requestBrowserAccess(browser: string): void
}
export declare namespace autotype {

View File

@@ -17,12 +17,3 @@ if (featuresArg) {
}
execSync(`napi build --platform --js false ${featuresArg}`, { stdio: 'inherit', env: process.env });
/* Mac App Store build with sandboxing - Does this belong here?
const target = process.env.npm_config_target || '';
const featuresArg = target.includes('mas') ? '--features sandbox' : '';
execSync(`napi build --platform --js false ${featuresArg}`, { stdio: 'inherit', env: process.env });
*/

View File

@@ -1184,6 +1184,8 @@ pub mod chromium_importer {
#[napi]
pub fn request_browser_access(browser: String) -> napi::Result<()> {
println!("request_browser_access() was called from napi");
#[cfg(all(target_os = "macos", feature = "sandbox"))]
{
chromium_importer::chromium::request_browser_access(&browser)