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:
1
apps/desktop/desktop_native/napi/index.d.ts
vendored
1
apps/desktop/desktop_native/napi/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
@@ -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 });
|
||||
|
||||
*/
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user